-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
79 lines (60 loc) · 1.86 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
plugins {
id 'java'
}
group 'org.example'
version project.version_name
repositories {
mavenCentral()
}
configurations {
create("shadow")
implementation.extendsFrom(shadow)
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
shadow 'io.netty:netty-all:5.0.0.Alpha2'
shadow 'io.netty:netty5-transport-native-epoll:5.0.0.Alpha5'
shadow 'com.alibaba.fastjson2:fastjson2:2.0.22'
shadow 'org.slf4j:slf4j-api:2.0.6'
shadow 'org.apache.logging.log4j:log4j-slf4j2-impl:2.19.0'
shadow 'org.apache.logging.log4j:log4j-api:2.19.0'
shadow 'org.apache.logging.log4j:log4j-core:2.19.0'
shadow 'commons-codec:commons-codec:1.15'
shadow 'commons-logging:commons-logging:1.2'
shadow 'commons-io:commons-io:2.11.0'
// shadow 'it.unimi.dsi:fastutil:8.5.11'
shadow 'com.github.oshi:oshi-core:6.4.0'
// shadow 'org.iq80.leveldb:leveldb:0.12'
shadow 'io.github.pcmind:leveldb:1.2'
shadow 'org.lz4:lz4-java:1.8.0'
shadow 'com.squareup.okhttp3:okhttp:5.0.0-alpha.11'
shadow 'bot.inker.acj:runtime:1.3'
shadow 'org.jetbrains:annotations:23.1.0'
shadow 'org.reflections:reflections:0.10.2'
shadow 'org.ansj:ansj_seg:5.1.6'
shadow 'com.esotericsoftware:kryo:5.4.0'
testCompileOnly 'org.java-websocket:Java-WebSocket:1.5.3'
}
tasks.withType(JavaCompile).configureEach {
options.compilerArgs += ['--enable-preview']
}
jar {
from("LICENSE") {
}
with copySpec({
from(configurations.shadow.collect {
it.isDirectory() ? it : zipTree(it)
})
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
})
manifest {
attributes(
'Main-Class': project.main_class,
'Multi-Release': 'true'
)
}
}
test {
useJUnitPlatform()
}