mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-10 14:36:06 +00:00
Update Upstream
6c08b68 Set Multi-Release in CLI manifest
This commit is contained in:
parent
91ad0a20ef
commit
8c328abdd2
@ -158,7 +158,7 @@ sealed class WorldEditKind(
|
|||||||
object Plugin : WorldEditKind("PLUGIN")
|
object Plugin : WorldEditKind("PLUGIN")
|
||||||
}
|
}
|
||||||
|
|
||||||
fun Project.addJarManifest(kind: WorldEditKind, includeClasspath: Boolean = false) {
|
fun Project.addJarManifest(kind: WorldEditKind, includeClasspath: Boolean = false, extraAttributes: Map<String, String> = mapOf()) {
|
||||||
tasks.named<Jar>("jar") {
|
tasks.named<Jar>("jar") {
|
||||||
val version = project(":worldedit-core").version
|
val version = project(":worldedit-core").version
|
||||||
inputs.property("version", version)
|
inputs.property("version", version)
|
||||||
@ -171,6 +171,7 @@ fun Project.addJarManifest(kind: WorldEditKind, includeClasspath: Boolean = fals
|
|||||||
if (includeClasspath) {
|
if (includeClasspath) {
|
||||||
attributes["Class-Path"] = CLASSPATH
|
attributes["Class-Path"] = CLASSPATH
|
||||||
}
|
}
|
||||||
|
attributes.putAll(extraAttributes)
|
||||||
manifest.attributes(attributes)
|
manifest.attributes(attributes)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,13 @@ project.description = "CLI"
|
|||||||
applyPlatformAndCoreConfiguration()
|
applyPlatformAndCoreConfiguration()
|
||||||
applyShadowConfiguration()
|
applyShadowConfiguration()
|
||||||
|
|
||||||
addJarManifest(WorldEditKind.Standalone("com.sk89q.worldedit.cli.CLIWorldEdit"))
|
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 {
|
dependencies {
|
||||||
// Modules
|
// Modules
|
||||||
|
Loading…
Reference in New Issue
Block a user