3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-11-16 13:00:10 +01:00
Geyser/build-logic/src/main/kotlin/geyser.publish-conventions.gradle.kts
2022-04-24 13:16:39 -05:00

31 Zeilen
748 B
Plaintext

plugins {
id("geyser.shadow-conventions")
id("com.jfrog.artifactory")
id("maven-publish")
}
publishing {
publications.create<MavenPublication>("mavenJava") {
groupId = project.group as String
artifactId = "Geyser-" + project.name
version = project.version as String
artifact(tasks["shadowJar"])
artifact(tasks["sourcesJar"])
}
}
artifactory {
publish {
repository {
setRepoKey(if (isSnapshot()) "maven-snapshots" else "maven-releases")
setMavenCompatible(true)
}
defaults {
publishConfigs("archives")
setPublishArtifacts(true)
setPublishPom(true)
setPublishIvy(false)
}
}
}