-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
76 lines (64 loc) · 2.24 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
import com.github.jengelman.gradle.plugins.shadow.transformers.Log4j2PluginsCacheFileTransformer
plugins {
id "com.gradleup.shadow" version "8.3.3"
id "java"
id "java-library"
}
allprojects {
group = "ru.boomearo"
version = "1.0"
compileJava {
options.encoding = "UTF-8"
}
jar {
manifest {
attributes "Main-Class": "ru.boomearo.networkrelay.NetworkRelayBootstrap"
attributes "Multi-Release": "true"
}
}
artifacts {
archives shadowJar
}
shadowJar {
archiveBaseName.set("NetworkRelay")
archiveClassifier.set("")
archiveVersion.set("")
transform(Log4j2PluginsCacheFileTransformer)
}
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
repositories {
mavenCentral()
}
ext {
lombokVersion = "1.18.34"
nettyVersion = "4.1.114.Final"
spongeConfig = "4.1.2"
jlineTerminal = "3.26.1"
consoleAppender = "1.3.0"
log4jVersion = "2.23.1"
guavaVersion = "33.2.1-jre"
dsiUtils = "2.7.3"
}
dependencies {
implementation "org.apache.logging.log4j:log4j-core:${log4jVersion}"
implementation "org.apache.logging.log4j:log4j-iostreams:${log4jVersion}"
implementation "io.netty:netty-transport-native-epoll:${nettyVersion}:linux-x86_64"
implementation "io.netty:netty-transport-native-epoll:${nettyVersion}:linux-aarch_64"
implementation "io.netty:netty-handler:${nettyVersion}"
implementation "org.spongepowered:configurate-yaml:${spongeConfig}"
implementation "net.minecrell:terminalconsoleappender:${consoleAppender}"
implementation "org.jline:jline-terminal-jansi:${jlineTerminal}"
implementation "com.google.guava:guava:${guavaVersion}"
implementation("it.unimi.dsi:dsiutils:${dsiUtils}") {
exclude group: "ch.qos.logback"
exclude group: "it.unimi.di"
exclude group: "org.slf4j"
exclude group: "org.apache.commons"
}
compileOnly "org.projectlombok:lombok:${lombokVersion}"
annotationProcessor "org.projectlombok:lombok:${lombokVersion}"
}
}