mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Exclude from relocation, not inclusion
This commit is contained in:
parent
e35f3785b2
commit
dc29d997fd
2 changed files with 6 additions and 4 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue