forked from Minestom/Arena
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
48 lines (40 loc) · 1.09 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id("java")
id("com.github.johnrengelman.shadow") version "7.1.0"
}
tasks {
jar {
archiveFileName.set("server.jar")
}
}
group = "net.minestom"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven(url = "https://jitpack.io")
}
dependencies {
implementation("com.github.Minestom:Minestom:cb3892255e")
implementation("de.articdive:jnoise-pipeline:4.0.0")
implementation("io.prometheus:simpleclient:0.16.0")
implementation("io.prometheus:simpleclient_hotspot:0.16.0")
implementation("io.prometheus:simpleclient_httpserver:0.16.0")
implementation("net.kyori:adventure-text-minimessage:4.12.0")
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
tasks {
named<ShadowJar>("shadowJar") {
manifest {
attributes (
"Main-Class" to "net.minestom.arena.Main",
"Multi-Release" to true
)
}
archiveBaseName.set("arena")
mergeServiceFiles()
}
build { dependsOn(shadowJar) }
}