mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-15 04:41:37 +08:00
20c42b51c8
Also bump to match underlying platform versions to resolve runtime version mismatches.
51 lines
1.4 KiB
Plaintext
51 lines
1.4 KiB
Plaintext
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
|
|
|
plugins {
|
|
`java-library`
|
|
}
|
|
|
|
applyPlatformAndCoreConfiguration()
|
|
applyShadowConfiguration()
|
|
addJarManifest(
|
|
WorldEditKind.Standalone("com.sk89q.worldedit.cli.CLIWorldEdit"),
|
|
extraAttributes = mapOf(
|
|
// We don't have any multi-release stuff, but Log4J does.
|
|
"Multi-Release" to "true",
|
|
),
|
|
)
|
|
|
|
dependencies {
|
|
"compileOnly"(project(":worldedit-libs:core:ap"))
|
|
"annotationProcessor"(project(":worldedit-libs:core:ap"))
|
|
"annotationProcessor"("com.google.guava:guava:${Versions.GUAVA}")
|
|
"api"(project(":worldedit-core"))
|
|
"implementation"(platform("org.apache.logging.log4j:log4j-bom:${Versions.LOG4J}") {
|
|
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 }
|
|
}
|
|
minimize {
|
|
exclude(dependency("org.apache.logging.log4j:log4j-core"))
|
|
}
|
|
}
|
|
|
|
tasks.named("assemble").configure {
|
|
dependsOn("shadowJar")
|
|
}
|
|
|
|
configure<PublishingExtension> {
|
|
publications.named<MavenPublication>("maven") {
|
|
artifactId = the<BasePluginExtension>().archivesName.get()
|
|
from(components["java"])
|
|
}
|
|
}
|