mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
33 lines
791 B
Text
33 lines
791 B
Text
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
|
|
|
|
from(components["java"])
|
|
}
|
|
}
|
|
}
|
|
|
|
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)
|
|
}
|
|
}
|
|
}
|