-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
74 lines (60 loc) · 2.14 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
67
68
69
70
71
72
73
74
plugins {
id 'application'
}
group = 'uk.gemwire'
archivesBaseName = 'installerconverter'
version = '0.1'
repositories {
mavenCentral()
jcenter()
flatDir {
dirs(".cache/local/uk/gemwire/RetroInstallerTools/0.1")
}
}
dependencies {
implementation group: 'local', name: 'RetroInstallerTools', version: '0.1', classifier: 'fatjar'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.12.1'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.12.1'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.12.1'
implementation group: 'com.google.jimfs', name: 'jimfs', version: '1.2'
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.30'
implementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.7.1'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-params', version: '5.7.1'
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.7.1'
}
application {
mainClassName = 'uk.gemwire.installerconverter.Main'
applicationDefaultJvmArgs += ["--enable-preview"]
}
run {
workingDir = file('run/')
workingDir.mkdirs()
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(15)
}
}
// Enable preview features, so we can have records and such
tasks.withType(JavaCompile) {
options.compilerArgs += '--enable-preview'
options.compilerArgs.addAll([
"--add-exports", "java.base/sun.security.tools=ALL-UNNAMED",
"--add-exports", "jdk.jartool/sun.security.tools.jarsigner=ALL-UNNAMED",
"--add-exports", "java.base/sun.security.util=ALL-UNNAMED",
"--add-exports", "java.base/sun.security.x509=ALL-UNNAMED"
])
sourceCompatibility = 15;
options.release = null;
}
tasks.withType(Test) {
jvmArgs += "--enable-preview"
}
tasks.withType(JavaExec) {
jvmArgs += "--enable-preview"
}
test {
useJUnitPlatform()
workingDir = 'run/'
}