3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-13 22:50:06 +01:00

Update Upstream

6c08b68 Set Multi-Release in CLI manifest
Dieser Commit ist enthalten in:
NotMyFault 2021-09-07 10:19:04 +02:00
Ursprung 91ad0a20ef
Commit 8c328abdd2
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 158F5701A6AAD00C
2 geänderte Dateien mit 9 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -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)
}
}

Datei anzeigen

@ -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