3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-10-08 19:00:13 +02:00
Geyser/build-logic/src/main/kotlin/geyser.publish-conventions.gradle.kts

34 Zeilen
836 B
Plaintext

2022-04-24 20:16:39 +02:00
plugins {
id("geyser.shadow-conventions")
id("com.jfrog.artifactory")
id("maven-publish")
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
groupId = project.group as String
artifactId = project.name
version = project.version as String
2022-04-24 20:16:39 +02:00
artifact(tasks["shadowJar"])
artifact(tasks["sourcesJar"])
}
2022-04-24 20:16:39 +02:00
}
}
artifactory {
setContextUrl("https://repo.opencollab.dev/artifactory")
2022-04-24 20:16:39 +02:00
publish {
repository {
setRepoKey(if (isSnapshot()) "maven-snapshots" else "maven-releases")
setMavenCompatible(true)
}
defaults {
publications("mavenJava")
2022-04-24 20:16:39 +02:00
setPublishArtifacts(true)
setPublishPom(true)
setPublishIvy(false)
}
}
}