-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
69 lines (58 loc) · 1.86 KB
/
build.gradle.kts
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
plugins {
java
id("maven-publish")
id("com.github.johnrengelman.shadow")
}
repositories {
mavenLocal()
mavenCentral()
maven("https://jitpack.io")
}
group = "com.purenex"
version = "1.1"
dependencies {
implementation("jline:jline:2.14.6")
implementation("net.sf.jopt-simple:jopt-simple:5.0.4")
implementation("net.minecrell:terminalconsoleappender:1.1.1")
implementation("it.unimi.dsi:fastutil:8.5.11")
implementation("org.jline:jline-reader:3.21.0")
implementation("org.jline:jline-terminal-jna:3.21.0")
implementation("org.jline:jline-terminal:3.21.0")
implementation("org.apache.logging.log4j:log4j-api:2.17.2")
implementation("org.apache.logging.log4j:log4j-core:2.17.2")
implementation("com.google.guava:guava:31.1-jre")
implementation("com.google.code.gson:gson:2.9.0")
implementation("org.yaml:snakeyaml:1.30")
implementation("io.netty:netty-all:4.1.76.Final")
implementation("org.iq80.leveldb:leveldb:0.12")
compileOnly("org.projectlombok:lombok:1.18.24")
annotationProcessor("org.projectlombok:lombok:1.18.24")
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(11))
withSourcesJar()
}
tasks {
build { dependsOn(shadowJar) }
shadowJar {
archiveFileName.set("Pure.jar")
transform(com.github.jengelman.gradle.plugins.shadow.transformers.Log4j2PluginsCacheFileTransformer::class.java)
manifest {
attributes["Main-Class"] = "cn.nukkit.Nukkit"
attributes["Multi-Release"] = "true"
}
}
withType<JavaCompile> { options.encoding = "UTF-8" }
}
publishing {
publications.create<MavenPublication>("maven") {
from(components["java"])
pom {
repositories {
mavenLocal()
mavenCentral()
maven("https://jitpack.io")
}
}
}
}