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

26 Zeilen
827 B
Plaintext

2021-02-23 11:29:18 +01:00
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
2021-02-18 14:34:33 +01:00
tasks {
2021-02-23 11:29:18 +01:00
withType<ShadowJar> {
2021-02-18 14:34:33 +01:00
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 {
2021-02-23 11:29:18 +01:00
dependsOn(withType<ShadowJar>())
}
2021-02-18 14:34:33 +01:00
}