diff options
Diffstat (limited to 'Spigot-Server-Patches/0185-update-log4j.patch')
-rw-r--r-- | Spigot-Server-Patches/0185-update-log4j.patch | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/Spigot-Server-Patches/0185-update-log4j.patch b/Spigot-Server-Patches/0185-update-log4j.patch new file mode 100644 index 0000000000..5be1703d11 --- /dev/null +++ b/Spigot-Server-Patches/0185-update-log4j.patch @@ -0,0 +1,93 @@ +From b5c599702cf865e727ccfcbf4b68c80d2de0fc07 Mon Sep 17 00:00:00 2001 +From: sulu5890 <[email protected]> +Date: Fri, 17 Dec 2021 13:52:11 -0600 +Subject: [PATCH] update log4j + + +diff --git a/pom.xml b/pom.xml +index 1f518dd2..7dbe9281 100644 +--- a/pom.xml ++++ b/pom.xml +@@ -37,7 +37,7 @@ + <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> +@@ -55,7 +55,7 @@ + <dependency> + <groupId>jline</groupId> + <artifactId>jline</artifactId> +- <version>2.12</version> ++ <version>2.12.1</version> <!-- paper - update log4j --> + <scope>compile</scope> + </dependency> + <dependency> +@@ -99,8 +99,8 @@ + <!-- required until fixed plexus-compiler-eclipse is deployed --> + <pluginRepositories> + <pluginRepository> +- <id>spigotmc-public</id> +- <url>https://hub.spigotmc.org/nexus/content/groups/public/</url> ++ <id>papermc</id> <!-- paper - update log4j --> ++ <url>https://papermc.io/repo/repository/maven-public/</url> <!-- paper - update log4j --> + </pluginRepository> + </pluginRepositories> + +@@ -141,6 +141,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> +@@ -168,7 +169,7 @@ + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-shade-plugin</artifactId> +- <version>2.4.1</version> ++ <version>3.2.4</version> + <executions> + <execution> + <phase>package</phase> +@@ -176,6 +177,16 @@ + <goal>shade</goal> + </goals> + <configuration> ++ <!-- 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 --> + <createDependencyReducedPom>false</createDependencyReducedPom> <!-- Paper --> + <relocations> + <!-- Paper - Workaround for hardcoded path lookup in dependency, easier than forking it - GH-189 --> +diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml +index c99aedb4..20bb83ac 100644 +--- a/src/main/resources/log4j2.xml ++++ b/src/main/resources/log4j2.xml +@@ -3,10 +3,10 @@ + <Appenders> + <Console name="WINDOWS_COMPAT" target="SYSTEM_OUT"></Console> + <Queue name="TerminalConsole"> +- <PatternLayout pattern="[%d{HH:mm:ss} %level]: %msg{nolookups}%n" /> ++ <PatternLayout pattern="[%d{HH:mm:ss} %level]: %msg%n" /> <!-- paper - update log4j --> + </Queue> + <RollingRandomAccessFile name="File" fileName="logs/latest.log" filePattern="logs/%d{yyyy-MM-dd}-%i.log.gz"> +- <PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level]: %msg{nolookups}%n" /> ++ <PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level]: %msg%n" /> <!-- paper - update log4j --> + <Policies> + <TimeBasedTriggeringPolicy /> + <OnStartupTriggeringPolicy /> +-- +2.34.1 + |