1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-12-19 14:59:27 +00:00
Files
Geyser/build-logic/src/main/kotlin/geyser.publish-conventions.gradle.kts
2025-11-30 13:11:21 +01:00

22 lines
689 B
Plaintext

plugins {
id("geyser.shadow-conventions")
id("net.kyori.indra.publishing")
}
indra {
configurePublications {
if (shouldAddBranchName()) {
version = versionWithBranchName()
}
}
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() }
}