-
Notifications
You must be signed in to change notification settings - Fork 64
/
build.gradle
79 lines (66 loc) · 2.19 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
75
76
77
78
79
import org.gradle.api.JavaVersion
import org.gradle.api.tasks.compile.JavaCompile
plugins {
id 'java'
id 'java-library'
}
allprojects {
repositories {
jcenter()
mavenCentral()
mavenLocal()
maven {
url 'https://repo.cleanroommc.com/releases/'
}
maven {
url 'https://jitpack.io'
}
}
apply plugin: 'java-library'
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.36'
annotationProcessor 'org.projectlombok:lombok:1.18.36'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
}
compileJava {
options.encoding = "UTF-8" // Will fail on the non-ascii comments if not set
}
tasks.withType(JavaCompile).configureEach {
if (sourceCompatibility == JavaVersion.VERSION_17) {
options.compilerArgs += [
'--add-exports', 'java.base/jdk.internal.reflect=ALL-UNNAMED',
'--add-exports', 'java.base/jdk.internal.util=ALL-UNNAMED',
'--add-exports', 'java.base/sun.io.ch=ALL-UNNAMED'
]
}
}
tasks.withType(Test).configureEach {
if (sourceCompatibility == JavaVersion.VERSION_17) {
jvmArgs += [
'--add-exports', 'java.base/jdk.internal.reflect=ALL-UNNAMED',
'--add-exports', 'java.base/jdk.internal.util=ALL-UNNAMED',
'--add-exports', 'java.base/sun.io.ch=ALL-UNNAMED'
]
}
}
ext {
asm = 'org.ow2.asm:asm:9.7.1'
asm_commons = 'org.ow2.asm:asm-commons:9.7.1'
asm_tree = 'org.ow2.asm:asm-tree:9.7.1'
cafedude = 'com.github.Col-E:CAFED00D:2.1.1'
slf4j_api = 'org.slf4j:slf4j-api:1.7.36'
jlinker = 'com.github.xxDark:jlinker:1.0.7'
}
}
group 'dev.skidfuscator.community'
version '2.0.0-SNAPSHOT'
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
}
test {
useJUnitPlatform()
}