From 9e67637c69e6dbd7555b3145c9b15ea7bddde6e1 Mon Sep 17 00:00:00 2001 From: Octavia Togami Date: Sun, 11 Apr 2021 10:07:39 -0700 Subject: [PATCH] Update log4j to 2.11.2 for JDK 9+ compat (#5400) --- ...n-prefixes-using-Log4J-configuration.patch | 2 +- .../Include-Log4J2-SLF4J-implementation.patch | 3 +- Spigot-Server-Patches/POM-Changes.patch | 55 ++++++++++++++++--- ...oleAppender-for-console-improvements.patch | 1 - .../Use-asynchronous-Log4j-2-loggers.patch | 4 +- 5 files changed, 52 insertions(+), 13 deletions(-) diff --git a/Spigot-Server-Patches/Handle-plugin-prefixes-using-Log4J-configuration.patch b/Spigot-Server-Patches/Handle-plugin-prefixes-using-Log4J-configuration.patch index 41fe221c19..67a82a57ab 100644 --- a/Spigot-Server-Patches/Handle-plugin-prefixes-using-Log4J-configuration.patch +++ b/Spigot-Server-Patches/Handle-plugin-prefixes-using-Log4J-configuration.patch @@ -19,9 +19,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 --- a/pom.xml +++ b/pom.xml @@ -0,0 +0,0 @@ + org.apache.logging.log4j log4j-core - 2.8.1 - runtime + compile diff --git a/Spigot-Server-Patches/Include-Log4J2-SLF4J-implementation.patch b/Spigot-Server-Patches/Include-Log4J2-SLF4J-implementation.patch index 3c6d659fda..249db17915 100644 --- a/Spigot-Server-Patches/Include-Log4J2-SLF4J-implementation.patch +++ b/Spigot-Server-Patches/Include-Log4J2-SLF4J-implementation.patch @@ -9,13 +9,12 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 --- a/pom.xml +++ b/pom.xml @@ -0,0 +0,0 @@ - 2.8.1 + log4j-api compile + + org.apache.logging.log4j + log4j-slf4j-impl -+ 2.8.1 + runtime + diff --git a/Spigot-Server-Patches/POM-Changes.patch b/Spigot-Server-Patches/POM-Changes.patch index 8c8b07895c..13c4147711 100644 --- a/Spigot-Server-Patches/POM-Changes.patch +++ b/Spigot-Server-Patches/POM-Changes.patch @@ -40,6 +40,18 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 ../pom.xml ++ ++ ++ ++ org.apache.logging.log4j ++ log4j-bom ++ 2.11.2 ++ pom ++ import ++ ++ ++ ++ - org.spigotmc @@ -61,6 +73,30 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 minecraft-server ${minecraft.version}-SNAPSHOT compile +@@ -0,0 +0,0 @@ + 2.12.1 + compile + ++ ++ org.apache.logging.log4j ++ log4j-api ++ compile ++ + + org.apache.logging.log4j + log4j-iostreams +- 2.8.1 + compile +- +- +- +- org.apache.logging.log4j +- log4j-api +- +- + + + org.ow2.asm @@ -0,0 +0,0 @@ 9.1 compile @@ -106,7 +142,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 - spigot.desc - - initialize -- ++ compile + - describe - - @@ -118,8 +155,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 - craftbukkit.desc - - initialize -+ compile - +- - describe + gitdescribe @@ -145,6 +181,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 Bukkit ${api.version} Bukkit Team ++ true + + + @@ -0,0 +0,0 @@ shade @@ -162,11 +202,12 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + + io/netty/** + META-INF/native/libnetty* -+ com/brigadier/** ++ com/mojang/brigadier/** + META-INF/MANIFEST.MF -+ com.mojang.authlib.yggdrasil.YggdrasilGameProfileRepository -+ com.mojang.datafixers.util.Either -+ org.apache.logging.log4j/** ++ com/mojang/authlib/yggdrasil/YggdrasilGameProfileRepository.class ++ com/mojang/datafixers/util/Either* ++ org/apache/logging/log4j/** ++ META-INF/org/apache/logging/log4j/core/config/plugins/Log4j2Plugins.dat diff --git a/Spigot-Server-Patches/Use-TerminalConsoleAppender-for-console-improvements.patch b/Spigot-Server-Patches/Use-TerminalConsoleAppender-for-console-improvements.patch index 18359bf41d..3b8e01fc1d 100644 --- a/Spigot-Server-Patches/Use-TerminalConsoleAppender-for-console-improvements.patch +++ b/Spigot-Server-Patches/Use-TerminalConsoleAppender-for-console-improvements.patch @@ -49,7 +49,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + + org.apache.logging.log4j + log4j-core -+ 2.8.1 + runtime diff --git a/Spigot-Server-Patches/Use-asynchronous-Log4j-2-loggers.patch b/Spigot-Server-Patches/Use-asynchronous-Log4j-2-loggers.patch index 44aab741ce..56d85b045d 100644 --- a/Spigot-Server-Patches/Use-asynchronous-Log4j-2-loggers.patch +++ b/Spigot-Server-Patches/Use-asynchronous-Log4j-2-loggers.patch @@ -9,8 +9,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 --- a/pom.xml +++ b/pom.xml @@ -0,0 +0,0 @@ - - + log4j-iostreams + compile + +