Use relocate function from the build-logic plugin

This commit is contained in:
onebeastchris 2024-03-19 17:44:45 +01:00
parent 1b94d3b86e
commit facf5934c6
1 changed files with 10 additions and 11 deletions

View File

@ -48,18 +48,17 @@ application {
mainClass.set("org.geysermc.geyser.platform.fabric.GeyserFabricMain")
}
relocate("org.cloudburstmc.nbt")
relocate("org.cloudburstmc.netty")
relocate("org.cloudburstmc.protocol")
relocate("io.netty.handler.codec.dns")
relocate("io.netty.handler.codec.haproxy")
relocate("io.netty.resolver.dns.macos")
relocate("com.github.steveice10.mc.protocol")
relocate("com.github.steveice10.mc.auth")
relocate("com.github.steveice10.packetlib")
tasks {
shadowJar {
relocate("org.cloudburstmc.nbt", "org.geysermc.relocate.cloudburst.nbt")
relocate("org.cloudburstmc.netty", "org.geysermc.relocate.cloudburst.netty")
relocate("org.cloudburstmc.protocol", "org.geysermc.relocate.cloudburst.protocol")
relocate("io.netty.handler.codec.dns", "org.geysermc.relocate.netty.codec-dns")
relocate("io.netty.handler.codec.haproxy", "org.geysermc.relocate.netty.codec-haproxy")
relocate("io.netty.resolver.dns.macos", "org.geysermc.relocate.netty.dns-macos")
relocate("com.github.steveice10.mc.protocol", "org.geysermc.relocate.mcpl")
relocate("com.github.steveice10.mc.auth", "org.geysermc.relocate.authlib")
relocate("com.github.steveice10.packetlib", "org.geysermc.relocate.packetlib")
}
remapJar {
archiveBaseName.set("Geyser-Fabric")
}