3
0
Mirror von https://github.com/ViaVersion/ViaBackwards.git synchronisiert 2024-11-17 21:40:22 +01:00
ViaBackwards/universal/build.gradle.kts
2021-02-24 14:24:06 +01:00

26 Zeilen
827 B
Plaintext

import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
tasks {
withType<ShadowJar> {
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(withType<ShadowJar>())
}
}