Exclude from relocation, not inclusion

This commit is contained in:
Kas-tle 2022-08-24 05:18:12 +00:00 committed by GitHub
parent e35f3785b2
commit dc29d997fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View file

@ -43,9 +43,11 @@ fun Project.exclude(group: String) {
}
}
fun Project.platformRelocate(pattern: String) {
fun Project.platformRelocate(pattern: String, exclusion: String = "") {
tasks.named<ShadowJar>("shadowJar") {
relocate(pattern, "org.geysermc.geyser.platform.${project.name}.shaded.$pattern")
relocate(pattern, "org.geysermc.geyser.platform.${project.name}.shaded.$pattern") {
exclude(exclusion)
}
}
}