2019-08-25 09:58:28 +00:00
|
|
|
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
|
|
|
|
2020-08-14 19:29:15 +00:00
|
|
|
plugins {
|
|
|
|
`java-library`
|
|
|
|
}
|
|
|
|
|
2019-08-25 09:58:28 +00:00
|
|
|
applyPlatformAndCoreConfiguration()
|
|
|
|
applyShadowConfiguration()
|
|
|
|
|
2021-02-25 21:58:17 +00:00
|
|
|
addJarManifest(WorldEditKind.Standalone("com.sk89q.worldedit.cli.CLIWorldEdit"))
|
|
|
|
|
2019-08-25 09:58:28 +00:00
|
|
|
dependencies {
|
2020-08-14 19:29:15 +00:00
|
|
|
"api"(project(":worldedit-core"))
|
2021-01-25 10:14:09 +00:00
|
|
|
"implementation"(platform("org.apache.logging.log4j:log4j-bom:2.14.0"))
|
|
|
|
"implementation"("org.apache.logging.log4j:log4j-core")
|
|
|
|
"implementation"("org.apache.logging.log4j:log4j-slf4j-impl")
|
2020-08-14 19:29:15 +00:00
|
|
|
"implementation"("commons-cli:commons-cli:1.4")
|
2021-01-25 10:14:09 +00:00
|
|
|
"implementation"("com.google.guava:guava")
|
|
|
|
"implementation"("com.google.code.gson:gson")
|
2019-08-25 09:58:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.named<ShadowJar>("shadowJar") {
|
|
|
|
dependencies {
|
|
|
|
include { true }
|
|
|
|
}
|
|
|
|
minimize {
|
2019-09-02 03:11:34 +00:00
|
|
|
exclude(dependency("org.apache.logging.log4j:log4j-core"))
|
2019-08-25 09:58:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.named("assemble").configure {
|
|
|
|
dependsOn("shadowJar")
|
|
|
|
}
|