-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
57 lines (46 loc) · 1.1 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
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
kotlin("jvm") version "2.1.0"
kotlin("plugin.serialization") version "2.1.0"
application
id("org.graalvm.buildtools.native") version "0.10.3"
}
group = "info.skyblond"
version = "2.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation("com.github.ajalt.clikt:clikt:5.0.1")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.8.0")
testImplementation(kotlin("test"))
}
tasks.test {
useJUnitPlatform()
}
java {
targetCompatibility = JavaVersion.VERSION_21
sourceCompatibility = JavaVersion.VERSION_21
}
kotlin {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_21)
}
}
application {
mainClass.set("info.skyblond.fic.MainKt")
}
graalvmNative {
toolchainDetection.set(true)
binaries {
all {
resources.autodetect()
}
named("main") {
buildArgs("--gc=G1")
buildArgs("-R:MaxRAMPercentage=50")
buildArgs("--strict-image-heap")
buildArgs("-march=x86-64-v3")
}
}
}