diff --git a/build.gradle.kts b/build.gradle.kts index b157f0f..92a3043 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -69,13 +69,14 @@ tasks.processResources { tasks { named("shadowJar") { mustRunAfter(test) + configurations = listOf(shadowImplementation) + + // NAMING archiveBaseName.set("nicko") archiveVersion.set(version.toString()) archiveAppendix.set("") archiveClassifier.set("") - configurations = listOf(shadowImplementation) - // RELOCATIONS relocate("xyz.xenondevs", "xyz.ineanto.nicko.libs.invui") relocate("me.clip", "xyz.ineanto.nicko.libs.placeholderapi") @@ -89,6 +90,7 @@ tasks { relocate("com.google.gson", "xyz.ineanto.nicko.libs.gson") relocate("org.apache.commons.pool2", "xyz.ineanto.nicko.libs.pool2") + // EXCLUSIONS exclude("colors.bin") exclude("waffle/**") exclude("com/sun/**") @@ -104,6 +106,12 @@ tasks { exclude("org/yaml/**") exclude("google/protobuf/**") exclude("net/kyori/**") + + // MINIFY + minimize { + exclude(dependency("xyz.xenondevs.invui:.*")) + exclude(dependency("net.wesjd:.*")) + } } }