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