-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
56 lines (46 loc) · 1.26 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
plugins {
application
id("org.graalvm.buildtools.native") version "0.9.9"
}
group = "com.piorrro33"
version = "0.2dev"
application {
mainClass.set("com.github.piorrro33.hd6tools.Main")
}
tasks.withType<JavaCompile> {
options.compilerArgs.add("-Aproject=${project.group}/${project.name}")
options.encoding = "UTF-8"
options.release.set(17)
}
tasks.withType<JavaExec> {
standardInput = System.`in` // Allows user input while running from Gradle
outputs.upToDateWhen { false }
}
tasks.test {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
repositories {
mavenCentral()
}
dependencies {
implementation("info.picocli:picocli:4.6.2")
annotationProcessor("info.picocli:picocli-codegen:4.6.2")
testImplementation(platform("org.junit:junit-bom:5.7.1"))
testImplementation("org.junit.jupiter:junit-jupiter")
}
graalvmNative {
binaries {
named("main") {
buildArgs.add("-H:+AddAllCharsets")
imageName.set(project.name)
javaLauncher.set(javaToolchains.launcherFor {
languageVersion.set(JavaLanguageVersion.of(17))
vendor.set(JvmVendorSpec.GRAAL_VM)
})
verbose.set(true)
}
}
}