Backport PR #12724 to 7.x: Deps: update log4j2 to latest and ship log4j 1.2 bridge (#12744)

Expected to improve logging experience for libraries stuck with Log4J 1.2 logging.
This commit is contained in:
Karol Bucek 2021-03-11 12:42:41 +01:00 committed by GitHub
parent 9a4c0ea79c
commit fafb7d3104
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'
}