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:
Ursprung
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
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren