From b76e8608e79b8bf2855292793d72c948fecdd79e Mon Sep 17 00:00:00 2001 From: Daniel Roberts ddanielr Date: Tue, 21 Jul 2026 16:27:08 +0000 Subject: [PATCH] Update to the latest log4j version Bumps versions and fixes deprecated builder pattern --- .../apache/accumulo/core/logging/EscalatingLoggerTest.java | 4 ++-- pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/test/java/org/apache/accumulo/core/logging/EscalatingLoggerTest.java b/core/src/test/java/org/apache/accumulo/core/logging/EscalatingLoggerTest.java index a119601cf0a..33f340a45fb 100644 --- a/core/src/test/java/org/apache/accumulo/core/logging/EscalatingLoggerTest.java +++ b/core/src/test/java/org/apache/accumulo/core/logging/EscalatingLoggerTest.java @@ -48,8 +48,8 @@ public void test() throws InterruptedException { // Programatically modify the Log4j2 Logging configuration to add an appender LoggerContext ctx = LoggerContext.getContext(false); Configuration cfg = ctx.getConfiguration(); - PatternLayout layout = PatternLayout.newBuilder().withConfiguration(cfg) - .withPattern(PatternLayout.SIMPLE_CONVERSION_PATTERN).build(); + PatternLayout layout = PatternLayout.newBuilder().setConfiguration(cfg) + .setPattern(PatternLayout.SIMPLE_CONVERSION_PATTERN).build(); Appender appender = WriterAppender.createAppender(layout, null, writer, "EscalatingLoggerTestAppender", false, true); appender.start(); diff --git a/pom.xml b/pom.xml index 9df56e7e19b..331e4ddbca5 100644 --- a/pom.xml +++ b/pom.xml @@ -171,7 +171,7 @@ under the License. 5.8.0 2.41.0 3.3.6 - 2.25.4 + 2.26.1 1.48.0 2.0.9 2.0.17