2019-08-25 11:58:28 +02:00
|
|
|
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
|
|
|
|
2020-08-14 21:29:15 +02:00
|
|
|
plugins {
|
|
|
|
`java-library`
|
|
|
|
}
|
|
|
|
|
2019-08-25 11:58:28 +02:00
|
|
|
applyPlatformAndCoreConfiguration()
|
|
|
|
applyShadowConfiguration()
|
|
|
|
|
2021-02-25 22:58:17 +01:00
|
|
|
addJarManifest(WorldEditKind.Standalone("com.sk89q.worldedit.cli.CLIWorldEdit"))
|
|
|
|
|
2019-08-25 11:58:28 +02:00
|
|
|
dependencies {
|
2021-03-29 15:29:16 +02:00
|
|
|
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")
|
2019-08-25 11:58:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.named<ShadowJar>("shadowJar") {
|
|
|
|
dependencies {
|
|
|
|
include { true }
|
|
|
|
}
|
2021-03-26 21:21:45 +01:00
|
|
|
archiveFileName.set("FastAsyncWorldEdit-CLI-${project.version}.jar")
|
2019-08-25 11:58:28 +02:00
|
|
|
minimize {
|
2019-09-02 05:11:34 +02:00
|
|
|
exclude(dependency("org.apache.logging.log4j:log4j-core"))
|
2019-08-25 11:58:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.named("assemble").configure {
|
|
|
|
dependsOn("shadowJar")
|
|
|
|
}
|