Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-09 01:30:13 +01:00
d3a3e366b1
Co-authored-by: jmp <jasonpenilla2@me.com>
26 Zeilen
988 B
Plaintext
26 Zeilen
988 B
Plaintext
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
|
|
|
tasks {
|
|
withType<ShadowJar> {
|
|
archiveClassifier.set("")
|
|
archiveFileName.set("ViaVersion-${project.version}.jar")
|
|
destinationDirectory.set(rootProject.projectDir.resolve("build/libs"))
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
sequenceOf(
|
|
rootProject.projects.viaversionBukkit,
|
|
rootProject.projects.viaversionBungee,
|
|
rootProject.projects.viaversionFabric,
|
|
rootProject.projects.viaversionSponge,
|
|
rootProject.projects.viaversionVelocity,
|
|
).map { it.dependencyProject }.forEach { subproject ->
|
|
val shadowJarTask = subproject.tasks.getByName("shadowJar", ShadowJar::class)
|
|
dependsOn(shadowJarTask)
|
|
dependsOn(subproject.tasks.withType<Jar>())
|
|
from(zipTree(shadowJarTask.archiveFile))
|
|
}
|
|
}
|
|
build {
|
|
dependsOn(withType<ShadowJar>())
|
|
}
|
|
}
|