Fix Shadow conventions

This commit is contained in:
SKBotNL committed 2026-01-24 21:06:31 +01:00
1 parent f5663397fe
commit d9a1ac25b9
1 file changed
+7 -5
@@ -2,10 +2,12 @@ plugins {
id("com.gradleup.shadow")
}
tasks.shadowJar {
archiveClassifier.set("") // Use empty string instead of null.
isEnableRelocation = true
relocationPrefix = "${project.group}.shadow"
tasks.named("shadowJar") {
setProperty("archiveClassifier", "")
setProperty("enableRelocation", true)
setProperty("relocationPrefix", "${project.group}.shadow")
}
tasks.build { dependsOn(tasks.shadowJar) }
tasks.named("build") {
dependsOn("shadowJar")
}