lguhc/build.gradle

44 lines
987 B
Groovy
Raw Normal View History

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()
maven { url 'https://jitpack.io' }
2024-09-27 21:39:24 +02:00
}
dependencies {
implementation "net.minestom:minestom-snapshots:${minestom_version}"
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'
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 {
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.
}
}