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()
|
|
|
|
|
|
|
|
dependencies {
|
2020-08-14 19:29:15 +00:00
|
|
|
"api"(project(":worldedit-core"))
|
|
|
|
"implementation"("org.apache.logging.log4j:log4j-core:2.8.1")
|
|
|
|
"implementation"("org.apache.logging.log4j:log4j-slf4j-impl:2.8.1")
|
|
|
|
"implementation"("commons-cli:commons-cli:1.4")
|
2021-01-21 12:07:17 +00:00
|
|
|
"implementation"("com.google.guava:guava:21.0")
|
|
|
|
"implementation"("com.google.code.gson:gson:2.8.0")
|
2019-08-25 09:58:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.named<Jar>("jar") {
|
|
|
|
manifest {
|
|
|
|
attributes(
|
|
|
|
"Implementation-Version" to project.version,
|
|
|
|
"Main-Class" to "com.sk89q.worldedit.cli.CLIWorldEdit"
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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")
|
|
|
|
}
|