-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
49 lines (41 loc) · 931 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
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
group = 'io.vproxy'
version = '1'
java {
sourceCompatibility = 21
targetCompatibility = 21
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
options.compilerArgs += '--enable-preview'
}
tasks.withType(JavaExec) {
jvmArgs += '--enable-preview'
}
tasks.withType(Test) {
jvmArgs += '--enable-preview'
}
repositories {
mavenCentral()
}
dependencies {
implementation 'io.vproxy:commons:1.2.2'
compileOnly 'org.graalvm.sdk:nativeimage:23.1.1'
testImplementation platform('org.junit:junit-bom:5.9.1')
testImplementation 'org.junit.jupiter:junit-jupiter'
}
test {
useJUnitPlatform()
}
shadowJar {
archiveBaseName = 'jdkman'
archiveClassifier = ''
archiveVersion = ''
manifest {
attributes 'Main-Class': 'io.vproxy.jdkman.Main'
}
exclude "module-info.class"
}