Preserve scoreboard library adapters in shadow jar
This commit is contained in:
1 parent
972d58f5c8
commit
2ae797371a
1 file changed
+8
-1
+8
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user