-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
47 lines (40 loc) · 1.44 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
plugins {
id "java"
id "com.github.johnrengelman.shadow" version "${SHADOW_VERSION}"
id "net.kyori.blossom" version "${BLOSSOM_VERSION}"
}
defaultTasks "clean", "build", "shadowJar"
group "${NFSERVER_GROUP}"
version "${NFSERVER_VERSION}"
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
}
dependencies {
implementation "com.github.Minestom:Minestom:${MINESTOM_VERSION}"
implementation "com.github.notfoundname:MinestomBasicLight:${MINESTOMBASICLIGHT_VERSION}"
implementation "com.github.TogAr2:MinestomFluids:${MINESTOMFLUIDS_VERSION}"
implementation "net.kyori:adventure-text-minimessage:${MINIMESSAGE_VERSION}"
implementation "org.spongepowered:configurate-hocon:${CONFIGURATE_VERSION}"
implementation "com.github.cafestube:MineStom-SlimeLoader:dev~1.19-SNAPSHOT"
// implementation "com.github.lordtgm:MinestomTPSFix:documentation-SNAPSHOT"
}
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
compileJava.options.encoding = "UTF-8"
shadowJar {
jar {
manifest {
attributes "Main-Class": "${NFSERVER_GROUP}.${rootProject.name}", "Multi-Release": true
}
}
blossom {
var cringe = "src/main/java/ru/notfoundname/nfserver/NFServer.java"
replaceToken("nfsversion", "${NFSERVER_VERSION}", cringe)
}
}
// TODO: replace with something not deprecated
gradle.buildFinished {
delete fileTree("build/libs") {
exclude "*-all.jar"
}
}