-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
86 lines (79 loc) · 2.36 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
plugins {
id 'com.gradle.plugin-publish' version '1.3.0'
id 'groovy'
id 'jvm-test-suite'
}
group = 'org.m2ci.msp'
version = '0.6.0-SNAPSHOT'
description = 'Apply common build logic to a slideshow project using Pandoc and reveal.js'
ext.url = 'https://github.com/m2ci-msp/gradle-pandoc-reveal-plugin'
repositories {
mavenCentral()
}
dependencies {
implementation libs.snakeyaml
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
}
gradlePlugin {
website = project.url
vcsUrl = project.url
plugins {
pandocRevealPlugin {
id = 'org.m2ci.msp.pandocreveal'
implementationClass = 'org.m2ci.msp.pandocreveal.PandocRevealPlugin'
displayName = 'Gradle Pandoc reveal.js plugin'
description = project.description
tags.addAll 'slideshow', 'pandoc', 'reveal.js'
}
}
}
testing {
suites {
test {
useJUnitJupiter(libs.versions.junit)
targets.configureEach {
testTask.configure {
systemProperty 'java.io.tmpdir', temporaryDir
systemProperty 'jsoupVersion', libs.versions.jsoup.get()
testLogging {
events 'passed', 'failed', 'skipped'
exceptionFormat = 'full'
}
}
}
}
}
}
publishing {
publications {
withType(MavenPublication).configureEach {
pom {
name.set 'Pandoc Reveal.js Plugin'
description.set project.description
url.set project.url
inceptionYear.set '2017'
licenses {
license {
name.set 'Apache License 2.0'
url.set 'https://www.apache.org/licenses/LICENSE-2.0'
}
}
developers {
developer {
name.set 'Ingmar Steiner'
id.set 'psibre'
}
}
scm {
connection.set "scm:git:${project.url}.git"
developerConnection.set 'scm:git:[email protected]/m2ci-msp/gradle-pandoc-reveal-plugin.git'
url.set project.url
}
}
}
}
}