|
|
@ -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" |
|
|
|