Skip to content
Permalink
Browse files

Shade everything to allow this to run locally - should probably minim…

…ize this to an extent later.
  • Loading branch information...
me4502 committed Jul 26, 2019
1 parent 10de36d commit 6a0b4c9ea8978b5dc1b3b3363e7f7d4853314eed
Showing with 12 additions and 8 deletions.
  1. +12 −8 worldedit-cli/build.gradle.kts
@@ -12,18 +12,22 @@ dependencies {

tasks.named<Jar>("jar") {
manifest {
attributes("WorldEdit-Version" to project.version)
attributes(
"WorldEdit-Version" to project.version,
"Main-Class" to "com.sk89q.worldedit.cli.CLIWorldEdit"
)
}
}

tasks.named<ShadowJar>("shadowJar") {
dependencies {
relocate("org.slf4j", "com.sk89q.worldedit.slf4j")
relocate("org.apache.logging.slf4j", "com.sk89q.worldedit.log4jbridge")

include(dependency("org.slf4j:slf4j-api"))
include(dependency("commons-cli:commons-cli:1.4"))
include(dependency("org.apache.logging.log4j:log4j-core"))
include(dependency("org.apache.logging.log4j:log4j-slf4j-impl"))
include { true }
}
minimize {
exclude { true }
}
}

tasks.named("assemble").configure {
dependsOn("shadowJar")
}

0 comments on commit 6a0b4c9

Please sign in to comment.
You can’t perform that action at this time.