forked from JukeboxMC/JukeboxMC
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
115 lines (100 loc) · 4.59 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jmailen.gradle.kotlinter.tasks.FormatTask
import org.jmailen.gradle.kotlinter.tasks.LintTask
plugins {
kotlin("jvm") version "1.8.20-RC"
application
id("org.jmailen.kotlinter") version "3.14.0"
id("com.github.johnrengelman.shadow") version "8.1.0"
}
repositories {
mavenCentral()
maven {
name = "opencollab-snapshots"
url = uri("https://repo.opencollab.dev/maven-snapshots/")
}
maven {
name = "opencollab-releases"
url = uri("https://repo.opencollab.dev/maven-releases/")
}
maven {
name = "jitpack"
url = uri("https://jitpack.io")
}
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation(group = "org.ow2.asm", name = "asm", version = "9.4")
implementation(group = "org.apache.commons", name = "commons-lang3", version = "3.12.0")
implementation(group = "com.fasterxml.jackson.core", name = "jackson-core", version = "2.14.2")
implementation(group = "com.fasterxml.jackson.core", name = "jackson-databind", version = "2.14.2")
implementation(group = "com.fasterxml.jackson.module", name = "jackson-module-kotlin", version = "2.14.2")
implementation(group = "com.fasterxml.jackson.dataformat", name = "jackson-dataformat-yaml", version = "2.14.2")
implementation(group = "com.fasterxml.jackson.dataformat", name = "jackson-dataformat-properties", version = "2.14.2")
implementation(group = "com.fasterxml.jackson.dataformat", name = "jackson-dataformat-toml", version = "2.14.2")
implementation(group = "com.github.Kaooot.Protocol", name = "bedrock-v575", version = "215edc744c") {
exclude(group = "com.nukkitx.fastutil")
exclude(group = "io.netty")
}
implementation(group = "io.netty", name = "netty-common", version = "4.1.90.Final")
implementation(group = "io.netty", name = "netty-buffer", version = "4.1.90.Final")
implementation(group = "io.netty", name = "netty-codec", version = "4.1.90.Final")
implementation(group = "io.netty", name = "netty-transport", version = "4.1.90.Final")
implementation(group = "io.netty", name = "netty-transport-native-epoll", version = "4.1.90.Final")
implementation(group = "io.netty", name = "netty-transport-native-kqueue", version = "4.1.90.Final")
implementation(group = "it.unimi.dsi", name = "fastutil", version = "8.5.12")
implementation(group = "net.daporkchop", name = "leveldb-mcpe-jni", version = "0.0.10-SNAPSHOT")
implementation(group = "com.google.guava", name = "guava", version = "31.1-jre")
implementation(group = "com.spotify", name = "completable-futures", version = "0.3.5")
implementation(group = "org.apache.commons", name = "commons-math3", version = "3.6.1")
implementation(group = "commons-io", name = "commons-io", version = "2.11.0")
implementation(group = "org.yaml", name = "snakeyaml", version = "2.0")
implementation(group = "org.apache.logging.log4j", name = "log4j-api", version = "2.20.0")
implementation(group = "org.apache.logging.log4j", name = "log4j-core", version = "2.20.0")
implementation(group = "org.jline", name = "jline-terminal", version = "3.23.0")
implementation(group = "org.jline", name = "jline-terminal-jna", version = "3.23.0")
implementation(group = "org.jline", name = "jline-reader", version = "3.23.0")
implementation(group = "net.minecrell", name = "terminalconsoleappender", version = "1.3.0") {
exclude(group = "org.apache.logging.log4j", module = "log4j-core")
exclude(group = "org.apache.logging.log4j", module = "log4j-api")
}
compileOnly(group = "org.jetbrains", name = "annotations", version = "24.0.1")
}
group = "org.jukeboxmc"
version = "1.0.0-Beta-1"
description = "JukeboxMC"
java.sourceCompatibility = JavaVersion.VERSION_17
java.targetCompatibility = JavaVersion.VERSION_17
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
tasks.withType<Javadoc> {
options.encoding = "UTF-8"
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
}
tasks.create<LintTask>("ktLint") {
group = "verification"
source(files("src"))
}
tasks.create<FormatTask>("ktFormat") {
group = "formatting"
source(files("src"))
}
application {
mainClass.set("org.jukeboxmc.Bootstrap")
}
tasks {
shadowJar {
dependsOn("ktLint", distTar, distZip)
archiveClassifier.set("")
manifest {
attributes(
"Main-Class" to "org.jukeboxmc.Bootstrap",
"Multi-Release" to true,
)
}
}
}