Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-20 06:50:09 +01:00
32 Zeilen
827 B
Plaintext
32 Zeilen
827 B
Plaintext
|
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||
|
|
||
|
plugins {
|
||
|
id("geyser.base-conventions")
|
||
|
id("com.github.johnrengelman.shadow")
|
||
|
}
|
||
|
|
||
|
tasks {
|
||
|
named<Jar>("jar") {
|
||
|
archiveClassifier.set("unshaded")
|
||
|
from(project.rootProject.file("LICENSE"))
|
||
|
}
|
||
|
val shadowJar = named<ShadowJar>("shadowJar") {
|
||
|
archiveBaseName.set(project.name)
|
||
|
archiveVersion.set("")
|
||
|
archiveClassifier.set("")
|
||
|
|
||
|
val sJar: ShadowJar = this
|
||
|
|
||
|
doFirst {
|
||
|
providedDependencies[project.name]?.forEach { string ->
|
||
|
sJar.dependencies {
|
||
|
println("Excluding $string from ${project.name}")
|
||
|
exclude(dependency(string))
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
named("build") {
|
||
|
dependsOn(shadowJar)
|
||
|
}
|
||
|
}
|