Disable the main distribution

We only need to generate the shadow distribution.

Signed-off-by: Graham <gpe@openrs2.dev>
bzip2
Graham 5 years ago
parent 99a28a842c
commit 1b49f6c2e1
  1. 21
      all/build.gradle.kts

@ -51,18 +51,27 @@ licenseReport {
val distTasks = listOf( val distTasks = listOf(
"distTar", "distTar",
"distZip", "distZip",
"installDist", "installDist"
)
configure(tasks.filter { it.name in distTasks }) {
enabled = false
}
val shadowDistTasks = listOf(
"installShadowDist", "installShadowDist",
"shadowDistTar", "shadowDistTar",
"shadowDistZip" "shadowDistZip"
) )
configure(tasks.filter { it.name in distTasks }) { configure(tasks.filter { it.name in shadowDistTasks }) {
dependsOn("generateAuthors", "generateLicenseReport") dependsOn("generateAuthors", "generateLicenseReport")
} }
distributions { distributions {
all { named("shadow") {
distributionBaseName.set("openrs2-shadow")
contents { contents {
from("$buildDir/AUTHORS") from("$buildDir/AUTHORS")
from("$rootDir/DCO") from("$rootDir/DCO")
@ -82,16 +91,12 @@ distributions {
} }
} }
} }
named("shadow") {
distributionBaseName.set("openrs2-shadow")
}
} }
publishing { publishing {
publications.create<MavenPublication>("maven") { publications.create<MavenPublication>("maven") {
artifactId = "openrs2" artifactId = "openrs2"
artifact(tasks.named("shadowDistZip").get()) setArtifacts(listOf(tasks.named("shadowDistZip").get()))
pom { pom {
packaging = "zip" packaging = "zip"

Loading…
Cancel
Save