Preserve scoreboard library adapters in shadow jar

This commit is contained in:
NotAlexNoyle committed 2025-12-11 00:41:58 -05:00
1 parent 972d58f5c8
commit 2ae797371a
1 file changed
+8 -1
+8 -1
View File
@@ -99,7 +99,14 @@ tasks.shadowJar {
archiveClassifier.set("") // Use empty string instead of null.
isEnableRelocation = true
relocationPrefix = "${project.group}.shadow"
minimize()
minimize {
// Keep the entire scoreboard library stack so ServiceLoader can find
// the PacketEvents adapter at runtime (PacketEvents-OG on 1.8+).
exclude(dependency("net.megavex:scoreboard-library-api:.*"))
exclude(dependency("net.megavex:scoreboard-library-extra-kotlin:.*"))
exclude(dependency("net.megavex:scoreboard-library-implementation:.*"))
exclude(dependency("net.megavex:scoreboard-library-packetevents:.*"))
}
}
tasks.jar { archiveClassifier.set("part") } // Applies to root jarfile only.