2022-04-24 20:16:39 +02:00
|
|
|
plugins {
|
|
|
|
id("geyser.shadow-conventions")
|
|
|
|
id("com.jfrog.artifactory")
|
|
|
|
id("maven-publish")
|
|
|
|
}
|
|
|
|
|
|
|
|
publishing {
|
2022-09-20 22:02:38 +02:00
|
|
|
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
|
|
|
|
2022-09-20 22:02:38 +02:00
|
|
|
artifact(tasks["shadowJar"])
|
|
|
|
artifact(tasks["sourcesJar"])
|
|
|
|
}
|
2022-04-24 20:16:39 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
artifactory {
|
2022-09-20 22:02:38 +02:00
|
|
|
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 {
|
2022-09-20 22:02:38 +02:00
|
|
|
publications("mavenJava")
|
2022-04-24 20:16:39 +02:00
|
|
|
setPublishArtifacts(true)
|
|
|
|
setPublishPom(true)
|
|
|
|
setPublishIvy(false)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|