From f7d2b4ece328e40098c6474e1c27c99ac9817540 Mon Sep 17 00:00:00 2001 From: Konicai <71294714+Konicai@users.noreply.github.com> Date: Wed, 24 May 2023 21:46:43 -0400 Subject: [PATCH] Add `Multi-Release: true` to standalone manifest (#3795) --- bootstrap/standalone/build.gradle.kts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bootstrap/standalone/build.gradle.kts b/bootstrap/standalone/build.gradle.kts index f5aaceab8..b5fae9db3 100644 --- a/bootstrap/standalone/build.gradle.kts +++ b/bootstrap/standalone/build.gradle.kts @@ -22,6 +22,13 @@ application { mainClass.set("org.geysermc.geyser.platform.standalone.GeyserStandaloneBootstrap") } +tasks.named("jar") { + manifest { + // log4j provides multi-release java 9 code which resolves https://github.com/GeyserMC/Geyser/issues/3693 + attributes("Multi-Release" to true) + } +} + tasks.withType { archiveBaseName.set("Geyser-Standalone")