mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
* Use JiJ inclusion for Fabric/NeoForge to prevent mod conflicts. Further: Don't publish shadow jars to maven. * Shade and relocate dependencies that don't conform to SemVer on Fabric * Shade/Relocate dependencies on Fabric to avoid version warnings * Use relocate function from the build-logic plugin
15 lines
No EOL
560 B
Text
15 lines
No EOL
560 B
Text
plugins {
|
|
id("geyser.shadow-conventions")
|
|
id("net.kyori.indra.publishing")
|
|
}
|
|
|
|
indra {
|
|
publishSnapshotsTo("geysermc", "https://repo.opencollab.dev/maven-snapshots")
|
|
publishReleasesTo("geysermc", "https://repo.opencollab.dev/maven-releases")
|
|
}
|
|
|
|
publishing {
|
|
// skip shadow jar from publishing. Workaround for https://github.com/johnrengelman/shadow/issues/651
|
|
val javaComponent = project.components["java"] as AdhocComponentWithVariants
|
|
javaComponent.withVariantsFromConfiguration(configurations["shadowRuntimeElements"]) { skip() }
|
|
} |