mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-21 04:49:51 +08:00
609c7b8cc4
* The scramble is complete * Fix version decl for Bukkit Log4J * Swap out to a compatibility layer for LogManager Slightly slower, but compatible across all Java versions * Piston released with SL4JF removal * Clean up declarations a bit
35 lines
949 B
Plaintext
35 lines
949 B
Plaintext
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
|
|
|
plugins {
|
|
`java-library`
|
|
}
|
|
|
|
applyPlatformAndCoreConfiguration()
|
|
applyShadowConfiguration()
|
|
addJarManifest(WorldEditKind.Standalone("com.sk89q.worldedit.cli.CLIWorldEdit"))
|
|
|
|
dependencies {
|
|
"api"(project(":worldedit-core"))
|
|
"implementation"(platform("org.apache.logging.log4j:log4j-bom:2.14.1") {
|
|
because("We control Log4J on this platform")
|
|
})
|
|
"implementation"("org.apache.logging.log4j:log4j-api")
|
|
"implementation"("org.apache.logging.log4j:log4j-core")
|
|
"implementation"("commons-cli:commons-cli:1.4")
|
|
"implementation"("com.google.guava:guava")
|
|
"implementation"("com.google.code.gson:gson")
|
|
}
|
|
|
|
tasks.named<ShadowJar>("shadowJar") {
|
|
dependencies {
|
|
include { true }
|
|
}
|
|
minimize {
|
|
exclude(dependency("org.apache.logging.log4j:log4j-core"))
|
|
}
|
|
}
|
|
|
|
tasks.named("assemble").configure {
|
|
dependsOn("shadowJar")
|
|
}
|