diff --git a/logstash-core/build.gradle b/logstash-core/build.gradle index 9dc373b17..4083bb962 100644 --- a/logstash-core/build.gradle +++ b/logstash-core/build.gradle @@ -30,7 +30,7 @@ String jrubyVersion = versionMap['jruby']['version'] String jacksonVersion = versionMap['jackson'] String jacksonDatabindVersion = versionMap['jackson-databind'] -String log4jVersion = '2.13.3' +String log4jVersion = '2.14.0' repositories { mavenCentral() @@ -164,6 +164,8 @@ dependencies { runtimeOnly "org.apache.logging.log4j:log4j-jcl:${log4jVersion}" // for the log4j-jcl bridge to work commons-logging needs to be on the same class-path runtimeOnly 'commons-logging:commons-logging:1.2' + // also handle libraries relying on log4j 1.x to redirect their logs + runtimeOnly "org.apache.logging.log4j:log4j-1.2-api:${log4jVersion}" implementation('org.reflections:reflections:0.9.11') { exclude group: 'com.google.guava', module: 'guava' }