2024-09-27 21:39:24 +02:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
id 'com.gradleup.shadow' version "8.3.0"
|
|
|
|
}
|
|
|
|
|
|
|
|
group = 'dev.ninjdai'
|
|
|
|
version = '0.1.0'
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2024-09-28 08:53:11 +02:00
|
|
|
maven { url 'https://jitpack.io' }
|
2024-09-27 21:39:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation "net.minestom:minestom-snapshots:${minestom_version}"
|
2024-09-28 08:53:11 +02:00
|
|
|
implementation "com.github.TogAr2:MinestomPvP:${minestompvp_version}"
|
2024-09-27 21:39:24 +02:00
|
|
|
|
|
|
|
compileOnly 'org.projectlombok:lombok:1.18.34'
|
|
|
|
annotationProcessor 'org.projectlombok:lombok:1.18.34'
|
2024-09-28 20:52:47 +02:00
|
|
|
|
|
|
|
implementation "org.slf4j:slf4j-simple:2.0.16"
|
2024-09-27 21:39:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
java {
|
|
|
|
toolchain {
|
|
|
|
languageVersion.set(JavaLanguageVersion.of(21)) // Minestom has a minimum Java version of 21
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks {
|
|
|
|
jar {
|
|
|
|
manifest {
|
2024-09-28 08:53:11 +02:00
|
|
|
attributes["Main-Class"] = "dev.ninjdai.werewolf.Main" // Change this to your main class
|
2024-09-27 21:39:24 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
build {
|
|
|
|
dependsOn(shadowJar)
|
|
|
|
}
|
|
|
|
shadowJar {
|
|
|
|
mergeServiceFiles()
|
|
|
|
archiveClassifier.set("") // Prevent the -all suffix on the shadowjar file.
|
|
|
|
}
|
|
|
|
}
|