Skip to content

Commit 026f20f

Browse files
committed
build: update log4j and slf4j dependencies to version 2.20.0 and 2.0.11.
Fixes incompatibility between SLF4J versions on the classpath.
1 parent 150af17 commit 026f20f

File tree

11 files changed

+13
-11
lines changed

11 files changed

+13
-11
lines changed

adapter/awslambda/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ dependencies {
1818

1919
implementation "org.apache.logging.log4j:log4j-api:$version_log4j"
2020
implementation "org.apache.logging.log4j:log4j-core:$version_log4j"
21-
runtimeOnly "org.apache.logging.log4j:log4j-slf4j18-impl:$version_log4j"
21+
runtimeOnly "org.apache.logging.log4j:log4j-slf4j2-impl:$version_log4j"
2222
runtimeOnly "com.amazonaws:aws-lambda-java-log4j2:$version_lambda_logger"
2323

2424
// opinionated implementations

adapter/vertxweb/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dependencies {
1313
testImplementation "org.junit.jupiter:junit-jupiter-api:$version_junit_jupiter"
1414
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$version_junit_jupiter"
1515
testRuntimeOnly "org.apache.logging.log4j:log4j-core:$version_log4j"
16-
testRuntimeOnly "org.apache.logging.log4j:log4j-slf4j18-impl:$version_log4j"
16+
testRuntimeOnly "org.apache.logging.log4j:log4j-slf4j2-impl:$version_log4j"
1717
}
1818

1919
task sourcesJar(type: Jar, dependsOn: classes) {

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ ext {
3838
version_jackson_databind = '2.18.0'
3939
version_jaxb_api = '2.3.1'
4040
version_junit_jupiter = '5.10.0'
41-
version_log4j = '2.18.0'
41+
version_log4j = '2.20.0'
42+
version_slf4j = '2.0.11'
4243
version_micrometer = '1.11.3'
4344
version_mockito = '5.2.0'
4445
version_mockito_kotlin = '4.1.0'

core/config-dynamic/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dependencies {
2222
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$version_junit_jupiter"
2323
testImplementation group: 'org.hamcrest', name: 'hamcrest', version: version_hamcrest
2424
testImplementation "org.apache.logging.log4j:log4j-core:$version_log4j"
25-
testImplementation "org.apache.logging.log4j:log4j-slf4j18-impl:$version_log4j"
25+
testImplementation "org.apache.logging.log4j:log4j-slf4j2-impl:$version_log4j"
2626
}
2727

2828
task sourcesJar(type: Jar, dependsOn: classes) {

core/config/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ dependencies {
1919
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$version_junit_jupiter"
2020
testImplementation group: 'org.hamcrest', name: 'hamcrest', version: version_hamcrest
2121
testImplementation "org.apache.logging.log4j:log4j-core:$version_log4j"
22-
testImplementation "org.apache.logging.log4j:log4j-slf4j18-impl:$version_log4j"
22+
testImplementation "org.apache.logging.log4j:log4j-slf4j2-impl:$version_log4j"
2323
}
2424

2525
task sourcesJar(type: Jar, dependsOn: classes) {

core/engine/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ dependencies {
3939
testImplementation "org.mockito:mockito-core:$version_mockito"
4040
testImplementation "org.mockito.kotlin:mockito-kotlin:$version_mockito_kotlin"
4141
testImplementation "org.apache.logging.log4j:log4j-core:$version_log4j"
42-
testImplementation "org.apache.logging.log4j:log4j-slf4j18-impl:$version_log4j"
42+
testImplementation "org.apache.logging.log4j:log4j-slf4j2-impl:$version_log4j"
4343
}
4444

4545
task sourcesJar(type: Jar, dependsOn: classes) {

core/expression/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies {
1515
testImplementation "org.junit.jupiter:junit-jupiter-api:$version_junit_jupiter"
1616
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$version_junit_jupiter"
1717
testImplementation group: 'org.hamcrest', name: 'hamcrest', version: version_hamcrest
18-
testImplementation "org.apache.logging.log4j:log4j-slf4j18-impl:$version_log4j"
18+
testImplementation "org.apache.logging.log4j:log4j-slf4j2-impl:$version_log4j"
1919
}
2020

2121
task sourcesJar(type: Jar, dependsOn: classes) {

core/http/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies {
1616
testImplementation "org.mockito:mockito-core:$version_mockito"
1717
testImplementation "org.mockito.kotlin:mockito-kotlin:$version_mockito_kotlin"
1818
testRuntimeOnly "org.apache.logging.log4j:log4j-core:$version_log4j"
19-
testRuntimeOnly "org.apache.logging.log4j:log4j-slf4j18-impl:$version_log4j"
19+
testRuntimeOnly "org.apache.logging.log4j:log4j-slf4j2-impl:$version_log4j"
2020
}
2121

2222
task sourcesJar(type: Jar, dependsOn: classes) {

server/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ dependencies {
2121
// logging
2222
implementation "org.apache.logging.log4j:log4j-core:$version_log4j"
2323
implementation "org.apache.logging.log4j:log4j-jcl:$version_log4j"
24-
implementation "org.apache.logging.log4j:log4j-slf4j18-impl:$version_log4j"
24+
implementation "org.slf4j:slf4j-api:$version_slf4j"
25+
implementation "org.apache.logging.log4j:log4j-slf4j2-impl:$version_log4j"
2526
implementation "org.apache.logging.log4j:log4j-1.2-api:$version_log4j"
2627
implementation "org.apache.logging.log4j:log4j-jul:$version_log4j"
2728

store/common/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies {
1515
testImplementation "org.mockito:mockito-core:$version_mockito"
1616
testImplementation "org.mockito.kotlin:mockito-kotlin:$version_mockito_kotlin"
1717
testImplementation group: 'org.hamcrest', name: 'hamcrest', version: version_hamcrest
18-
testImplementation "org.apache.logging.log4j:log4j-slf4j18-impl:$version_log4j"
18+
testImplementation "org.apache.logging.log4j:log4j-slf4j2-impl:$version_log4j"
1919
}
2020

2121
task sourcesJar(type: Jar, dependsOn: classes) {

0 commit comments

Comments
 (0)