Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-16 13:00:10 +01:00
34 Zeilen
836 B
Plaintext
34 Zeilen
836 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 = project.name
|
|
version = project.version as String
|
|
|
|
artifact(tasks["shadowJar"])
|
|
artifact(tasks["sourcesJar"])
|
|
}
|
|
}
|
|
}
|
|
|
|
artifactory {
|
|
setContextUrl("https://repo.opencollab.dev/artifactory")
|
|
publish {
|
|
repository {
|
|
setRepoKey(if (isSnapshot()) "maven-snapshots" else "maven-releases")
|
|
setMavenCompatible(true)
|
|
}
|
|
defaults {
|
|
publications("mavenJava")
|
|
setPublishArtifacts(true)
|
|
setPublishPom(true)
|
|
setPublishIvy(false)
|
|
}
|
|
}
|
|
} |