-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
70 lines (60 loc) · 1.71 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
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
//classpath "gradle.plugin.com.palantir.graal:gradle-graal:0.6.0"
classpath "gradle.plugin.org.mikeneck:graalvm-native-image-plugin:1.4.1"
}
}
plugins {
id 'java'
}
//apply plugin: 'com.palantir.graal'
apply plugin: "org.mikeneck.graalvm-native-image"
group 'info.picocli'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
implementation 'info.picocli:picocli:4.6.3'
implementation 'info.picocli:picocli-jansi-graalvm:1.2.0'
implementation 'org.fusesource.jansi:jansi:2.4.0'
annotationProcessor 'info.picocli:picocli-codegen:4.6.3'
testImplementation("org.junit.jupiter:junit-jupiter-api:5.5.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.5.2")
}
compileJava {
options.compilerArgs += [
"-Aproject=${project.group}/${project.name}",
"-Aother.resource.patterns=testkey.jks"
]
}
test {
useJUnitPlatform()
}
test.dependsOn(tasks.getByName('nativeImage'))
// config for palantir
//graal {
// mainClass 'picocli.nativeimage.demo.CheckSum'
// outputName 'checksum'
// graalVersion '19.3.0'
// //option '--static'
//}
// config for org.mikeneck.graalvm-native-image
nativeImage {
graalVmHome = System.getProperty('java.home')
mainClass = 'picocli.nativeimage.demo.CheckSum'
executableName = 'checksum'
arguments(
'--no-fallback',
// '--enable-all-security-services',
// '--initialize-at-run-time=com.example.runtime',
'--report-unsupported-elements-at-runtime'
)
}