-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
66 lines (55 loc) · 1.27 KB
/
build.gradle
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
58
59
60
61
62
63
64
65
66
plugins {
id 'java'
id "com.github.johnrengelman.shadow" version "7.1.2"
id 'org.graalvm.buildtools.native' version '0.9.14'
id 'jacoco'
}
group 'io.geekya215'
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
implementation 'org.jline:jline-terminal-jansi:3.21.0'
implementation 'org.jline:jline-reader:3.21.0'
}
test {
useJUnitPlatform()
}
tasks.withType(JavaCompile).configureEach {
options.compilerArgs.add("--enable-preview")
}
tasks.withType(JavaExec).configureEach {
jvmArgs("--enable-preview")
}
tasks.withType(Test).configureEach {
jvmArgs("--enable-preview")
}
shadowJar {
archiveBaseName.set('lava')
archiveClassifier.set('')
archiveVersion.set('')
}
jar {
manifest {
attributes('Main-Class': 'io.geekya215.lava.Main')
}
}
graalvmNative {
binaries {
main {
imageName = 'lava'
mainClass = 'io.geekya215.lava.Main'
verbose = true
buildArgs.add("-J--enable-preview")
}
}
}
jacocoTestReport {
reports {
xml.required = true
html.required = false
}
}
check.dependsOn jacocoTestReport