mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
b96cea75b8
609c7b8 Scrapped Logging Framework 4 Java Closes #997 Closes #998 Closes #999 Closes #1000 Closes #1001 Closes #1002
37 lines
1009 B
Plaintext
37 lines
1009 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 }
|
|
}
|
|
archiveFileName.set("FastAsyncWorldEdit-CLI-${project.version}.jar")
|
|
minimize {
|
|
exclude(dependency("org.apache.logging.log4j:log4j-core"))
|
|
}
|
|
}
|
|
|
|
tasks.named("assemble").configure {
|
|
dependsOn("shadowJar")
|
|
}
|