-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
81 lines (64 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
80
81
plugins {
id 'java'
}
group = 'de.plixo'
version = '1.0'
repositories {
mavenCentral()
}
dependencies {
//Annotations for @Nullable, @NotNull
implementation 'org.jetbrains:annotations:24.0.1'
implementation 'org.jetbrains:annotations:24.0.1'
//Lombok Annotation for @Setter, @Getter etc
compileOnly 'org.projectlombok:lombok:1.18.30'
annotationProcessor 'org.projectlombok:lombok:1.18.30'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.30'
testCompileOnly 'org.projectlombok:lombok:1.18.30'
//IO and Utils
implementation group: 'com.google.code.gson', name: 'gson', version: '2.10.1'
implementation group: 'com.google.guava', name: 'guava', version: '31.1-jre'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
implementation group: 'commons-io', name: 'commons-io', version: '2.11.0'
implementation 'org.apache.commons:commons-text:1.10.0'
//bytebuddy, for testing
implementation 'net.bytebuddy:byte-buddy:1.14.10'
implementation group: 'net.bytebuddy', name: 'byte-buddy-agent', version: '1.14.10'
//ASM lib
implementation 'org.ow2.asm:asm:9.5'
implementation 'org.ow2.asm:asm-commons:9.5'
implementation 'org.ow2.asm:asm-util:9.5'
implementation 'org.ow2.asm:asm-tree:9.5'
//Config
implementation 'org.tomlj:tomlj:1.1.1'
//testing
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
}
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
tasks.withType(JavaCompile).each {
it.options.compilerArgs.add('--enable-preview')
}
tasks.withType(JavaExec).each {
it.options.compilerArgs.add('--enable-preview')
}
javadoc.options {
addBooleanOption('-enable-preview', true)
addStringOption('-release', '21')
}
jar {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
manifest {
attributes(
'Main-Class': 'de.plixo.galactic.Main'
)
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
test {
useJUnitPlatform()
jvmArgs(['--enable-preview'])
}