aboutsummaryrefslogtreecommitdiffhomepage
path: root/Spigot-Server-Patches/0385-Update-Log4j.patch
diff options
context:
space:
mode:
authorsulu5890 <[email protected]>2021-12-19 18:10:22 -0600
committerGitHub <[email protected]>2021-12-19 16:10:22 -0800
commite39995d213616cc7d60c38e6e86e562f30637ef7 (patch)
tree5cfeaf9341e5364c1be46b51b5665f94d844dd5b /Spigot-Server-Patches/0385-Update-Log4j.patch
parent77cce8236ff09d52730b66c7a146265ce3415185 (diff)
downloadPaper-e39995d213616cc7d60c38e6e86e562f30637ef7.tar.gz
Paper-e39995d213616cc7d60c38e6e86e562f30637ef7.zip
Update Log4J (1.12.2) (#7154)ver/1.12.2
* Update Log4j * update log4j (again)
Diffstat (limited to 'Spigot-Server-Patches/0385-Update-Log4j.patch')
-rw-r--r--Spigot-Server-Patches/0385-Update-Log4j.patch132
1 files changed, 132 insertions, 0 deletions
diff --git a/Spigot-Server-Patches/0385-Update-Log4j.patch b/Spigot-Server-Patches/0385-Update-Log4j.patch
new file mode 100644
index 0000000000..549101ae42
--- /dev/null
+++ b/Spigot-Server-Patches/0385-Update-Log4j.patch
@@ -0,0 +1,132 @@
+From 33ae2cae2ced3d6b3294a61d3c5b460667589c45 Mon Sep 17 00:00:00 2001
+From: sulu5890 <[email protected]>
+Date: Sat, 11 Dec 2021 10:35:42 -0600
+Subject: [PATCH] Update Log4j
+
+
+diff --git a/pom.xml b/pom.xml
+index 132843880..d60021747 100644
+--- a/pom.xml
++++ b/pom.xml
+@@ -90,10 +90,11 @@
+ all its classes to check if they are plugins.
+ Scanning takes about 1-2 seconds so adding this speeds up the server start.
+ -->
++ <!-- Paper start - Update Log4j -->
+ <dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>log4j-core</artifactId>
+- <version>2.8.1</version>
++ <version>2.17.0</version>
+ <scope>compile</scope>
+ </dependency>
+
+@@ -101,22 +102,23 @@
+ <dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>log4j-slf4j-impl</artifactId>
+- <version>2.8.1</version>
++ <version>2.17.0</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>log4j-iostreams</artifactId>
+- <version>2.8.1</version>
++ <version>2.17.0</version>
+ </dependency>
+
+ <!-- Paper - Async loggers -->
+ <dependency>
+ <groupId>com.lmax</groupId>
+ <artifactId>disruptor</artifactId>
+- <version>3.4.2</version>
++ <version>3.4.4</version>
+ <scope>runtime</scope>
+ </dependency>
++ <!-- Paper end - Update Log4j -->
+
+ <!-- testing -->
+ <dependency>
+@@ -135,15 +137,17 @@
+
+ <repositories>
+ <repository>
+- <id>spigotmc-public</id>
+- <url>https://hub.spigotmc.org/nexus/content/groups/public/</url>
++ <!-- Paper start - update log4j -->
++ <id>paper</id>
++ <url>https://papermc.io/repo/repository/maven-public/</url>
+ </repository>
+ </repositories>
+
+ <pluginRepositories>
+ <pluginRepository>
+- <id>spigotmc-public</id>
+- <url>https://hub.spigotmc.org/nexus/content/groups/public/</url>
++ <id>paper</id>
++ <url>https://papermc.io/repo/repository/maven-public/</url>
++ <!-- paper end - update log4j -->
+ </pluginRepository>
+ </pluginRepositories>
+
+@@ -184,6 +188,7 @@
+ <Specification-Title>Bukkit</Specification-Title>
+ <Specification-Version>${api.version}</Specification-Version>
+ <Specification-Vendor>Bukkit Team</Specification-Vendor>
++ <Multi-Release>true</Multi-Release> <!-- Paper start - update log4j -->
+ </manifestEntries>
+ <manifestSections>
+ <manifestSection>
+@@ -211,7 +216,7 @@
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-shade-plugin</artifactId>
+- <version>3.1.0</version>
++ <version>3.2.4</version> <!-- Paper - Update Log4j -->
+ <executions>
+ <execution>
+ <phase>package</phase>
+@@ -220,6 +225,16 @@
+ </goals>
+ <configuration>
+ <dependencyReducedPomLocation>${project.build.directory}/dependency-reduced-pom.xml</dependencyReducedPomLocation> <!-- Paper -->
++ <!-- Paper start - Update Log4j -->
++ <filters>
++ <filter>
++ <artifact>org.spigotmc:minecraft-server:**</artifact>
++ <excludes>
++ <exclude>org/apache/logging/log4j/**</exclude>
++ </excludes>
++ </filter>
++ </filters>
++ <!-- Paper end - Update Log4j -->
+ <relocations>
+ <!-- Paper - Workaround for hardcoded path lookup in dependency, easier than forking it - GH-189 -->
+ <!--<relocation>-->
+@@ -251,16 +266,18 @@
+ <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
+ <resource>META-INF/services/java.sql.Driver</resource>
+ </transformer>
+- <transformer implementation="com.github.edwgiz.mavenShadePlugin.log4j2CacheTransformer.PluginsCacheFileTransformer" />
++ <transformer implementation="io.github.edwgiz.log4j.maven.plugins.shade.transformer.Log4j2PluginCacheFileTransformer" /> <!-- Paper - Update Log4j -->
+ </transformers>
+ </configuration>
+ </execution>
+ </executions>
+ <dependencies>
+ <dependency>
+- <groupId>com.github.edwgiz</groupId>
+- <artifactId>maven-shade-plugin.log4j2-cachefile-transformer</artifactId>
+- <version>2.8.1</version>
++ <!-- paper start - update log4j -->
++ <groupId>io.github.edwgiz</groupId>
++ <artifactId>log4j-maven-shade-plugin-extensions</artifactId>
++ <version>2.17.0</version>
++ <!-- paper end - update log4j -->
+ </dependency>
+ </dependencies>
+ </plugin>
+--
+2.34.1
+