mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-12-19 14:59:27 +00:00
Fix: Configurate conflicts on Geyser-Fabric / Geyser-NeoForge
This commit is contained in:
@@ -25,6 +25,11 @@ dependencies {
|
|||||||
shadowBundle(libs.raknet)
|
shadowBundle(libs.raknet)
|
||||||
shadowBundle(libs.mcprotocollib)
|
shadowBundle(libs.mcprotocollib)
|
||||||
|
|
||||||
|
// Shade + relocate configurate as we're using a fork
|
||||||
|
shadowBundle(libs.configurate.`interface`)
|
||||||
|
shadowBundle(libs.configurate.yaml)
|
||||||
|
shadowBundle(libs.configurate.core)
|
||||||
|
|
||||||
// Since we also relocate cloudburst protocol: shade erosion common
|
// Since we also relocate cloudburst protocol: shade erosion common
|
||||||
shadowBundle(libs.erosion.common)
|
shadowBundle(libs.erosion.common)
|
||||||
|
|
||||||
@@ -43,6 +48,7 @@ tasks.withType<Jar> {
|
|||||||
|
|
||||||
relocate("org.cloudburstmc.netty")
|
relocate("org.cloudburstmc.netty")
|
||||||
relocate("org.cloudburstmc.protocol")
|
relocate("org.cloudburstmc.protocol")
|
||||||
|
relocate("org.spongepowered.configurate")
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
remapJar {
|
remapJar {
|
||||||
@@ -52,6 +58,10 @@ tasks {
|
|||||||
remapModrinthJar {
|
remapModrinthJar {
|
||||||
archiveBaseName.set("geyser-fabric")
|
archiveBaseName.set("geyser-fabric")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
shadowJar {
|
||||||
|
mergeServiceFiles()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
modrinth {
|
modrinth {
|
||||||
|
|||||||
@@ -30,8 +30,10 @@ dependencies {
|
|||||||
// Let's shade in our own api
|
// Let's shade in our own api
|
||||||
shadowBundle(projects.api)
|
shadowBundle(projects.api)
|
||||||
|
|
||||||
// this one is particularly dumb
|
// shade + relocate these to avoid conflicts
|
||||||
shadowBundle(libs.configurate.`interface`)
|
shadowBundle(libs.configurate.`interface`)
|
||||||
|
shadowBundle(libs.configurate.yaml)
|
||||||
|
shadowBundle(libs.configurate.core)
|
||||||
|
|
||||||
// cannot be shaded, since neoforge will complain if floodgate-neoforge tries to provide this
|
// cannot be shaded, since neoforge will complain if floodgate-neoforge tries to provide this
|
||||||
include(projects.common)
|
include(projects.common)
|
||||||
@@ -43,6 +45,8 @@ dependencies {
|
|||||||
include(libs.cloud.neoforge)
|
include(libs.cloud.neoforge)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
relocate("org.spongepowered.configurate")
|
||||||
|
|
||||||
tasks.withType<Jar> {
|
tasks.withType<Jar> {
|
||||||
manifest.attributes["Main-Class"] = "org.geysermc.geyser.platform.neoforge.GeyserNeoForgeMain"
|
manifest.attributes["Main-Class"] = "org.geysermc.geyser.platform.neoforge.GeyserNeoForgeMain"
|
||||||
}
|
}
|
||||||
@@ -55,6 +59,10 @@ tasks {
|
|||||||
remapModrinthJar {
|
remapModrinthJar {
|
||||||
archiveBaseName.set("geyser-neoforge")
|
archiveBaseName.set("geyser-neoforge")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
shadowJar {
|
||||||
|
mergeServiceFiles()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
modrinth {
|
modrinth {
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ base-api = "1.0.2"
|
|||||||
bstats = "3.1.0"
|
bstats = "3.1.0"
|
||||||
cumulus = "1.1.2"
|
cumulus = "1.1.2"
|
||||||
configurate = "4.2.0-GeyserMC-20251111.004649-11"
|
configurate = "4.2.0-GeyserMC-20251111.004649-11"
|
||||||
|
configurate-core = "4.2.0-GeyserMC-20251111.004649-12"
|
||||||
erosion = "1.1-20240521.000109-3"
|
erosion = "1.1-20240521.000109-3"
|
||||||
events = "1.1-SNAPSHOT"
|
events = "1.1-SNAPSHOT"
|
||||||
yaml = "2.2"
|
yaml = "2.2"
|
||||||
@@ -68,6 +69,7 @@ erosion-common = { group = "org.geysermc.erosion", name = "common", version.ref
|
|||||||
|
|
||||||
yaml = { module = "org.yaml:snakeyaml", version.ref = "yaml" }
|
yaml = { module = "org.yaml:snakeyaml", version.ref = "yaml" }
|
||||||
|
|
||||||
|
configurate-core = { module = "org.spongepowered:configurate-core", version.ref = "configurate-core" }
|
||||||
configurate-interface-ap = { module = "org.spongepowered:configurate-extra-interface-ap", version.ref = "configurate" }
|
configurate-interface-ap = { module = "org.spongepowered:configurate-extra-interface-ap", version.ref = "configurate" }
|
||||||
configurate-interface = { module = "org.spongepowered:configurate-extra-interface", version.ref = "configurate" }
|
configurate-interface = { module = "org.spongepowered:configurate-extra-interface", version.ref = "configurate" }
|
||||||
configurate-yaml = { module = "org.spongepowered:configurate-yaml", version.ref = "configurate" }
|
configurate-yaml = { module = "org.spongepowered:configurate-yaml", version.ref = "configurate" }
|
||||||
|
|||||||
Reference in New Issue
Block a user