-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle.kts
141 lines (116 loc) · 4.07 KB
/
build.gradle.kts
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
import org.jenkinsci.gradle.plugins.jpi.JpiDeveloper
import org.jenkinsci.gradle.plugins.jpi.JpiLicense
import org.jetbrains.kotlin.gradle.internal.KaptGenerateStubsTask
import org.jetbrains.kotlin.gradle.internal.KaptTask
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version ("1.1.51")
kotlin("kapt") version ("1.1.51")
id("jacoco")
id("org.jenkins-ci.jpi") version ("0.22.0")
id("net.researchgate.release") version ("2.6.0")
}
repositories {
jcenter()
}
val kotlinVersion by project
val rxkotlinVersion by project
val flexmarkVersion by project
val asciidoctorjVersion by project
val asciidoctorjDiagramVersion by project
val jacksonVersion by project
val jgraphtVersion by project
val fuelVersion by project
val jsoupVersion by project
val kotlinxHtmlJvmVersion by project
val simplemagicVersion by project
val commonsCodecVersion by project
val jenkinsCredentialsPluginVersion by project
val jenkinsWorkflowStepsAPIPluginVersion by project
val testngVersion by project
val wiremockVersion by project
val mockitoVersion by project
val sezpozVersion by project
dependencies {
compile(kotlin("stdlib-jre8", "${kotlinVersion}"))
compile("io.reactivex.rxjava2:rxkotlin:${rxkotlinVersion}")
compile("com.vladsch.flexmark:flexmark:${flexmarkVersion}")
compile("com.vladsch.flexmark:flexmark-ext-yaml-front-matter:${flexmarkVersion}")
compile("com.vladsch.flexmark:flexmark-ext-tables:${flexmarkVersion}")
compile("org.asciidoctor:asciidoctorj:${asciidoctorjVersion}")
compile("org.asciidoctor:asciidoctorj-diagram:${asciidoctorjDiagramVersion}")
compile("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:${jacksonVersion}")
compile("com.fasterxml.jackson.module:jackson-module-kotlin:${jacksonVersion}")
compile("org.jgrapht:jgrapht-core:${jgraphtVersion}")
compile("com.github.kittinunf.fuel:fuel-rxjava:${fuelVersion}")
compile("com.github.kittinunf.fuel:fuel-gson:${fuelVersion}")
compile("org.jsoup:jsoup:${jsoupVersion}")
compile("org.jetbrains.kotlinx:kotlinx-html-jvm:${kotlinxHtmlJvmVersion}")
compile("com.j256.simplemagic:simplemagic:${simplemagicVersion}")
compile("commons-codec:commons-codec:${commonsCodecVersion}")
jenkinsPlugins("org.jenkins-ci.plugins:credentials:${jenkinsCredentialsPluginVersion}@jar")
jenkinsPlugins("org.jenkins-ci.plugins.workflow:workflow-step-api:${jenkinsWorkflowStepsAPIPluginVersion}@jar")
testCompile("org.testng:testng:${testngVersion}")
testCompile("com.github.tomakehurst:wiremock:${wiremockVersion}")
testCompile("org.mockito:mockito-core:${mockitoVersion}")
// SezPoz is used to process @hudson.Extension and other annotations
kapt("net.java.sezpoz:sezpoz:${sezpozVersion}")
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
}
kapt {
correctErrorTypes = true
}
jacoco {
toolVersion = "0.7.9"
}
val jenkinsCoreVersion by project
jenkinsPlugin {
displayName = "Doktor"
shortName = "doktor"
gitHubUrl = "https://github.com/madhead/doktor"
url = "https://wiki.jenkins.io/display/JENKINS/Doktor+Plugin"
coreVersion = jenkinsCoreVersion as String?
compatibleSinceVersion = coreVersion
fileExtension = "jpi"
pluginFirstClassLoader = true
developers = this.Developers().apply {
developer(delegateClosureOf<JpiDeveloper> {
setProperty("id", "madhead")
setProperty("name", "Siarhei Krukau")
setProperty("email", "[email protected]")
setProperty("url", "https://madhead.me")
setProperty("timezone", "UTC+3")
})
}
licenses = this.Licenses().apply {
license(delegateClosureOf<JpiLicense> {
setProperty("url", "http://www.apache.org/licenses/LICENSE-2.0")
})
}
}
tasks.withType(KotlinCompile::class.java).all {
dependsOn("localizer")
kotlinOptions {
jvmTarget = "1.8"
}
}
tasks.withType(Test::class.java).all {
useTestNG()
}
tasks.withType(JacocoReport::class.java).all {
reports {
xml.setEnabled(true)
}
}
tasks.withType(KaptTask::class.java).all {
outputs.upToDateWhen { false }
}
tasks.withType(KaptGenerateStubsTask::class.java).all {
outputs.upToDateWhen { false }
}
task<Wrapper>("wrapper") {
gradleVersion = "4.1"
distributionType = Wrapper.DistributionType.ALL
}