CrazyAuctions/core/build.gradle.kts
Ryder Belserion 5a69919781
fat jar ftw
2023-07-23 14:28:39 -04:00

33 lines
661 B
Plaintext

plugins {
id("paper-plugin")
}
group = "${rootProject.group}.core"
version = rootProject.version
base {
archivesName.set("${rootProject.name}-${project.name}")
}
tasks {
assemble {
dependsOn(shadowJar)
doLast {
delete(fileTree(baseDir = "$buildDir").include("**/*-dev*.jar"))
}
}
shadowJar {
archiveBaseName.set("${rootProject.name}-${project.name}")
archiveClassifier.set("")
mergeServiceFiles()
listOf(
"org.bstats",
"org.simpleyaml",
"org.yaml.snakeyaml"
).forEach {
relocate(it, "libs.$it")
}
}
}