Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-26 16:12:46 +01:00
Exclude from relocation, not inclusion
Dieser Commit ist enthalten in:
Ursprung
e35f3785b2
Commit
dc29d997fd
@ -27,7 +27,7 @@ dependencies {
|
|||||||
|
|
||||||
platformRelocate("it.unimi.dsi.fastutil")
|
platformRelocate("it.unimi.dsi.fastutil")
|
||||||
platformRelocate("com.fasterxml.jackson")
|
platformRelocate("com.fasterxml.jackson")
|
||||||
platformRelocate("net.kyori")
|
platformRelocate("net.kyori", "net.kyori.adventure.text.logger.slf4j.ComponentLogger")
|
||||||
platformRelocate("org.objectweb.asm")
|
platformRelocate("org.objectweb.asm")
|
||||||
platformRelocate("me.lucko.commodore")
|
platformRelocate("me.lucko.commodore")
|
||||||
platformRelocate("io.netty.channel.kqueue")
|
platformRelocate("io.netty.channel.kqueue")
|
||||||
@ -65,6 +65,6 @@ tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> {
|
|||||||
exclude(dependency("com.mojang:.*"))
|
exclude(dependency("com.mojang:.*"))
|
||||||
|
|
||||||
// Adventure slf4j
|
// Adventure slf4j
|
||||||
exclude(dependency("net.kyori.adventure.text.logger.slf4j:ComponentLogger"))
|
//exclude(dependency("net.kyori.adventure.text.logger.slf4j:ComponentLogger"))
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -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") {
|
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)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren