From 1b49f6c2e1496c16647343f78d2104b41567251f Mon Sep 17 00:00:00 2001 From: Graham Date: Sun, 10 May 2020 14:38:01 +0100 Subject: [PATCH] Disable the main distribution We only need to generate the shadow distribution. Signed-off-by: Graham --- all/build.gradle.kts | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/all/build.gradle.kts b/all/build.gradle.kts index d79f6179..7e98db41 100644 --- a/all/build.gradle.kts +++ b/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("maven") { artifactId = "openrs2" - artifact(tasks.named("shadowDistZip").get()) + setArtifacts(listOf(tasks.named("shadowDistZip").get())) pom { packaging = "zip"