mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2024-11-09 10:21:28 +01:00
25 lines
820 B
Plaintext
25 lines
820 B
Plaintext
tasks {
|
|
val universalJar = register<Jar>("universalJar") {
|
|
artifacts.add("archives", this)
|
|
archiveClassifier.set("")
|
|
archiveFileName.set("ViaBackwards-${project.version}.jar")
|
|
destinationDirectory.set(rootProject.projectDir.resolve("build/libs"))
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
arrayOf(
|
|
"bukkit",
|
|
"bungee",
|
|
"sponge",
|
|
"velocity",
|
|
"fabric"
|
|
).forEach {
|
|
val subProject = rootProject.project(":viabackwards-$it")
|
|
val shadowJarTask = subProject.tasks.getByName("shadowJar")
|
|
from(zipTree(shadowJarTask.outputs.files.singleFile))
|
|
dependsOn(shadowJarTask)
|
|
}
|
|
}
|
|
build {
|
|
dependsOn(universalJar)
|
|
}
|
|
}
|