-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
50 lines (41 loc) · 1.04 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
plugins {
kotlin("jvm") version "1.8.21"
id("com.github.johnrengelman.shadow") version "8.1.1"
application
}
group = "wtf.nucker"
version = "1.0"
repositories {
mavenCentral()
maven(url = "https://jitpack.io")
}
dependencies {
implementation("dev.hollowcube:minestom-ce:54e839e58a")
implementation("dev.hollowcube:polar:1.3.1")
implementation("com.github.emortalmc:TNT:1.19.4_2")
implementation("org.spongepowered:configurate-yaml:4.1.2")
implementation("org.spongepowered:configurate-extra-kotlin:4.1.2")
}
application {
mainClass.set("wtf.nucker.buildstom.MainKt")
}
tasks {
build {
dependsOn(shadowJar)
}
jar {
archiveFileName.set("server.jar")
manifest {
attributes["Main-Class"] = application.mainClass
}
}
distTar {
duplicatesStrategy = DuplicatesStrategy.WARN
}
distZip {
duplicatesStrategy = DuplicatesStrategy.WARN
}
named<JavaExec>("run") {
systemProperty("user.dir", "$projectDir/run")
}
}