-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
45 lines (38 loc) · 1.04 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
plugins {
id("application")
id("org.graalvm.buildtools.native") version "0.9.6"
}
group = "com.github.piorrro33"
version = "1.0.1"
application {
mainClass.set("com.github.piorrro33.paktools.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 }
}
repositories {
mavenCentral()
}
dependencies {
implementation("info.picocli:picocli:4.6.2")
annotationProcessor("info.picocli:picocli-codegen:4.6.2")
}
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)
}
}
}