blob: 212943a29289deaed3603d2a2216708c95969add (
plain) (
blame)
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
|
plugins {
application
java
id("io.freefair.lombok") version "8.6"
id("org.beryx.jlink") version "3.0.1"
}
val slf4jVersion = "2.0.13"
val jakartaAnnotationVersion = "3.0.0"
group = "lv.enes"
version = "0.1-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation("jakarta.annotation:jakarta.annotation-api:$jakartaAnnotationVersion")
implementation("org.slf4j:slf4j-api:$slf4jVersion")
implementation("org.slf4j:slf4j-simple:$slf4jVersion")
}
java {
sourceCompatibility = JavaVersion.VERSION_22
targetCompatibility = JavaVersion.VERSION_22
toolchain {
languageVersion = JavaLanguageVersion.of(22)
}
}
tasks.withType<JavaCompile> {
options.compilerArgs.add("--enable-preview")
}
application {
mainModule = "lv.enes.orang"
mainClass = "lv.enes.orang.Main"
}
jlink {
options.set(listOf("--strip-debug", "--compress", "2", "--no-header-files", "--no-man-pages"))
launcher {
name = "orang"
jvmArgs = listOf("--enable-preview")
}
}
|