diff options
author | sulu5890 <[email protected]> | 2021-12-19 18:10:29 -0600 |
---|---|---|
committer | GitHub <[email protected]> | 2021-12-19 16:10:29 -0800 |
commit | e5dbeaf24878287ac8310629c84f037d3684ab71 (patch) | |
tree | 5d6bdc72597d49ad44e853cb14c10d5cfc067423 | |
parent | 5c03bfdac2f477a6b091eaf1f990509386fc700f (diff) | |
download | Paper-ver/1.13.2.tar.gz Paper-ver/1.13.2.zip |
Update Log4J (1.13.2) (#7155)ver/1.13.2
* Update Log4j
* update log4j (again)
-rw-r--r-- | Spigot-Server-Patches/0449-Update-Log4j.patch | 122 | ||||
m--------- | work/Paperclip | 0 |
2 files changed, 122 insertions, 0 deletions
diff --git a/Spigot-Server-Patches/0449-Update-Log4j.patch b/Spigot-Server-Patches/0449-Update-Log4j.patch new file mode 100644 index 0000000000..b6075760a3 --- /dev/null +++ b/Spigot-Server-Patches/0449-Update-Log4j.patch @@ -0,0 +1,122 @@ +From 7540f1ee0397e587cda2ea09b512ed2a0d8d65f4 Mon Sep 17 00:00:00 2001 +From: sulu5890 <[email protected]> +Date: Sat, 11 Dec 2021 12:14:53 -0600 +Subject: [PATCH] Update Log4j + + +diff --git a/pom.xml b/pom.xml +index 9cbd4880f..fd63cf958 100644 +--- a/pom.xml ++++ b/pom.xml +@@ -60,25 +60,25 @@ + <dependency> + <groupId>org.apache.logging.log4j</groupId> + <artifactId>log4j-core</artifactId> +- <version>2.8.1</version> ++ <version>2.17.0</version> <!-- Paper - Update Log4j --> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.apache.logging.log4j</groupId> + <artifactId>log4j-slf4j-impl</artifactId> +- <version>2.8.1</version> ++ <version>2.17.0</version> <!-- Paper - Update Log4j --> + <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> <!-- Paper - Update Log4j --> + </dependency> + <!-- Paper - Async loggers --> + <dependency> + <groupId>com.lmax</groupId> + <artifactId>disruptor</artifactId> +- <version>3.4.2</version> ++ <version>3.4.4</version> <!-- Paper - Update Log4j --> + <scope>runtime</scope> + </dependency> + <dependency> +@@ -122,15 +122,17 @@ + Please see https://www.spigotmc.org/go/maven for more information. + --> + <repository> +- <id>spigotmc-public</id> +- <url>https://hub.spigotmc.org/nexus/content/groups/public/</url> ++ <!-- paper start - update log4j --> ++ <id>papermc</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>papermc</id> ++ <url>https://papermc.io/repo/repository/maven-public/</url> ++ <!-- paper end - update log4j --> + </pluginRepository> + </pluginRepositories> + +@@ -172,6 +174,7 @@ + <Specification-Title>Bukkit</Specification-Title> + <Specification-Version>${api.version}</Specification-Version> + <Specification-Vendor>Bukkit Team</Specification-Vendor> ++ <Multi-Release>true</Multi-Release> <!-- Paper - update log4j --> + </manifestEntries> + <manifestSections> + <manifestSection> +@@ -199,7 +202,7 @@ + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-shade-plugin</artifactId> +- <version>3.1.1</version> ++ <version>3.2.4</version> <!-- Paper - Update Log4j --> + <executions> + <execution> + <phase>package</phase> +@@ -208,6 +211,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 - Update Log4j --> + <createSourcesJar>${shadeSourcesJar}</createSourcesJar> + <relocations> + <!-- Cannot be relocated as it breaks translation property keys --> +@@ -242,16 +255,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 + diff --git a/work/Paperclip b/work/Paperclip -Subproject c7bfd68a6d71e6c5a09970a4dd00def29a4cbc3 +Subproject 2d4c7b3bbd322d8b7f3bbe2fe33ecf627251c82 |