-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
51 lines (39 loc) · 895 Bytes
/
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
plugins {
id 'java'
id 'application'
}
group 'de.gurkenlabs.input4j'
version '1.0-SNAPSHOT'
application {
mainClass = 'de.gurkenlabs.input4j.Program'
}
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.0'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
test {
useJUnitPlatform()
}
tasks.withType(JavaCompile).each {
it.options.compilerArgs.add('--enable-preview')
}
tasks.withType(JavaExec).configureEach {
jvmArgs += '--enable-preview'
jvmArgs += '--enable-native-access=ALL-UNNAMED'
}
compileJava {
options.compilerArgs += ['--enable-preview']
}
jar {
manifest {
attributes 'Implementation-Title': "LITIENGINE input playground",
'Main-Class': 'de.gurkenlabs.input4j.Program'
}
}
test {
jvmArgs += '--enable-preview'
jvmArgs += '--enable-native-access=ALL-UNNAMED'
}