-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
41 lines (36 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
plugins {
id("java")
id("org.graalvm.buildtools.native") version "0.9.13"
}
group = "ru.meproject"
version = "1.0-SNAPSHOT"
val javaTarget = 17
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(javaTarget))
}
}
repositories {
mavenCentral()
maven("https://jitpack.io")
}
dependencies {
implementation("info.picocli:picocli:4.6.3")
annotationProcessor("info.picocli:picocli-codegen:4.6.3")
implementation("com.github.fabiomsr:okhttp-peer-certificate-extractor:master-SNAPSHOT")
}
graalvmNative {
toolchainDetection.set(true)
binaries {
named("main") {
imageName.set("okhttpsslcli")
mainClass.set("ru.meproject.okhttpsslcli.Application")
debug.set(true) // Determines if debug info should be generated, defaults to false
verbose.set(true) // Add verbose output, defaults to false
fallback.set(true) // Sets the fallback mode of native-image, defaults to false
// buildArgs.add("-H:Extra")
// jvmArgs.add("flag") // Passes 'flag' directly to the JVM running the native image builder
configurationFileDirectories.from(file("build/classes/java/main/META-INF/native-image/picocli-generated"))
}
}
}