-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
55 lines (47 loc) · 1.25 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
plugins {
groovy
application
kotlin("jvm") version "1.4.10"
id("edu.sc.seis.launch4j") version "2.4.6"
}
val appMainClass = "com.github.arminha.jenkinstray.Main"
val jvmOpts = listOf("-Xms10m", "-Xmx32m", "-Xss228k", "-XX:+UseSerialGC")
application {
mainClass.set(appMainClass)
applicationDefaultJvmArgs = jvmOpts
}
repositories {
mavenCentral()
}
dependencies {
implementation("com.beust:klaxon:5.2")
implementation("com.squareup.okhttp3:okhttp:3.14.7")
implementation("com.moandjiezana.toml:toml4j:0.7.2")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("org.jetbrains.kotlin:kotlin-reflect")
testImplementation("org.spockframework:spock-core:2.0-M4-groovy-3.0")
}
tasks.withType<Test> {
useJUnitPlatform()
}
launch4j {
mainClassName = appMainClass
dontWrapJar = true
// add dependencies to classpath
copyConfigurable = sourceSets.main.get().runtimeClasspath.filter { it.name.endsWith(".jar") }
jvmOptions = jvmOpts.toMutableSet()
}
val createExe by tasks.createExe
distributions {
main {
contents {
from(createExe.outputs) {
include("*.exe")
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
}
}
}
tasks.named<Wrapper>("wrapper") {
gradleVersion = "6.6.1"
}