Disable the main distribution

We only need to generate the shadow distribution.

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

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

Loading…
Cancel
Save