mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 09:17:39 +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")
|
||||
}
|
||||
|
||||
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") {
|
||||
val version = project(":worldedit-core").version
|
||||
inputs.property("version", version)
|
||||
@ -171,6 +171,7 @@ fun Project.addJarManifest(kind: WorldEditKind, includeClasspath: Boolean = fals
|
||||
if (includeClasspath) {
|
||||
attributes["Class-Path"] = CLASSPATH
|
||||
}
|
||||
attributes.putAll(extraAttributes)
|
||||
manifest.attributes(attributes)
|
||||
}
|
||||
}
|
||||
|
@ -11,7 +11,13 @@ project.description = "CLI"
|
||||
applyPlatformAndCoreConfiguration()
|
||||
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 {
|
||||
// Modules
|
||||
|
Loading…
Reference in New Issue
Block a user