-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
40 lines (33 loc) · 940 Bytes
/
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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id("java")
alias(libs.plugins.shadow)
alias(libs.plugins.lombok)
}
group = "space.chunks"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation(rootProject.libs.minestom)
implementation(rootProject.libs.guice)
implementation(rootProject.libs.guice.assistedinject)
implementation(rootProject.libs.jackson.core)
implementation(rootProject.libs.jackson.databind)
implementation(rootProject.libs.log4j2)
implementation(rootProject.libs.log4j2.simple)
}
tasks.test {
useJUnitPlatform()
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}
tasks.named("shadowJar", ShadowJar::class) {
mergeServiceFiles()
archiveFileName.set("${project.name}.jar")
manifest {
attributes["Main-Class"] = "space.chunks.gamecup.dgr.launcher.GameLauncher"
}
}