build: stop trying to be clever with gradle publishing

if 'i aint readin allat' was a build scripting language
feat/data-edit-commands
William278 10 months ago
parent 85706d97c5
commit a9bd4dd2f0

@ -129,14 +129,29 @@ subprojects {
shadowJar.dependsOn(sourcesJar, javadocJar)
publishing {
publications {
mavenJavaCommon(MavenPublication) {
groupId = 'net.william278.husksync'
artifactId = "husksync-${project.name}"
version = "$rootProject.version"
artifact shadowJar
artifact sourcesJar
artifact javadocJar
if (['common'].contains(project.name)) {
publications {
mavenJavaCommon(MavenPublication) {
groupId = 'net.william278.husksync'
artifactId = 'husksync-common'
version = "$rootProject.version"
artifact shadowJar
artifact sourcesJar
artifact javadocJar
}
}
}
if (['bukkit'].contains(project.name)) {
publications {
mavenJavaBukkit(MavenPublication) {
groupId = 'net.william278.husksync'
artifactId = 'husksync-bukkit'
version = "$rootProject.version"
artifact shadowJar
artifact sourcesJar
artifact javadocJar
}
}
}
}

Loading…
Cancel
Save