1
0
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:
onebeastchris
2025-11-19 14:18:01 +01:00
parent 80db983a4c
commit bc26952723
3 changed files with 21 additions and 1 deletions

View File

@@ -25,6 +25,11 @@ dependencies {
shadowBundle(libs.raknet)
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
shadowBundle(libs.erosion.common)
@@ -43,6 +48,7 @@ tasks.withType<Jar> {
relocate("org.cloudburstmc.netty")
relocate("org.cloudburstmc.protocol")
relocate("org.spongepowered.configurate")
tasks {
remapJar {
@@ -52,6 +58,10 @@ tasks {
remapModrinthJar {
archiveBaseName.set("geyser-fabric")
}
shadowJar {
mergeServiceFiles()
}
}
modrinth {

View File

@@ -30,8 +30,10 @@ dependencies {
// Let's shade in our own api
shadowBundle(projects.api)
// this one is particularly dumb
// shade + relocate these to avoid conflicts
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
include(projects.common)
@@ -43,6 +45,8 @@ dependencies {
include(libs.cloud.neoforge)
}
relocate("org.spongepowered.configurate")
tasks.withType<Jar> {
manifest.attributes["Main-Class"] = "org.geysermc.geyser.platform.neoforge.GeyserNeoForgeMain"
}
@@ -55,6 +59,10 @@ tasks {
remapModrinthJar {
archiveBaseName.set("geyser-neoforge")
}
shadowJar {
mergeServiceFiles()
}
}
modrinth {

View File

@@ -3,6 +3,7 @@ base-api = "1.0.2"
bstats = "3.1.0"
cumulus = "1.1.2"
configurate = "4.2.0-GeyserMC-20251111.004649-11"
configurate-core = "4.2.0-GeyserMC-20251111.004649-12"
erosion = "1.1-20240521.000109-3"
events = "1.1-SNAPSHOT"
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" }
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 = { module = "org.spongepowered:configurate-extra-interface", version.ref = "configurate" }
configurate-yaml = { module = "org.spongepowered:configurate-yaml", version.ref = "configurate" }