mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-21 04:49:51 +08:00
d3810865c8
* Show a message with install instructions when running the jar file * Typo * Fixed checkstyle issue * Slightly modify message to adapt to the type of install * Clean up the display code a lot * Allow line breaks before semi Co-authored-by: Octavia Togami <octavia.togami@gmail.com>
33 lines
895 B
Plaintext
33 lines
895 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.0"))
|
|
"implementation"("org.apache.logging.log4j:log4j-core")
|
|
"implementation"("org.apache.logging.log4j:log4j-slf4j-impl")
|
|
"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")
|
|
}
|