Skip to content

Commit ce7ad87

Browse files
committed
[SPARK-53782] Use slf4j-api as a direct dependency
1 parent 2366928 commit ce7ad87

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

gradle/libs.versions.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ operator-sdk = "5.1.3"
2121
dropwizard-metrics = "4.2.33"
2222
spark = "4.0.1"
2323
log4j = "2.24.3"
24+
slf4j = "2.0.17"
2425

2526
# Test
2627
junit = "5.13.4"
@@ -50,6 +51,7 @@ log4j-core = { group = "org.apache.logging.log4j", name = "log4j-core", version.
5051
log4j-slf4j-impl = { group = "org.apache.logging.log4j", name = "log4j-slf4j-impl", version.ref = "log4j" }
5152
log4j-api12 = { group = "org.apache.logging.log4j", name = "log4j-1.2-api", version.ref = "log4j" }
5253
log4j-layout-template-json = { group = "org.apache.logging.log4j", name = "log4j-layout-template-json", version.ref = "log4j" }
54+
slf4j-api = { group = "org.slf4j", name = "slf4j-api", version.ref = "slf4j" }
5355
operator-framework = { group = "io.javaoperatorsdk", name = "operator-framework", version.ref = "operator-sdk"}
5456
operator-framework-junit5 = { group = "io.javaoperatorsdk", name = "operator-framework-junit-5", version.ref = "operator-sdk"}
5557
spotbugs-annotations = { group = "com.github.spotbugs", name = "spotbugs-annotations", version.ref = "spotbugs-tool"}

spark-operator-api/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@ dependencies {
2727
annotationProcessor(libs.lombok)
2828

2929
// logging
30-
implementation(libs.log4j.slf4j.impl)
30+
implementation(libs.log4j.slf4j.impl) {
31+
exclude group: 'org.slf4j'
32+
}
3133
implementation(libs.log4j.core)
34+
implementation(libs.slf4j.api)
3235

3336
testImplementation(platform(libs.junit.bom))
3437
testImplementation(libs.junit.jupiter)

spark-operator/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,12 @@ dependencies {
3131
// logging
3232
implementation(libs.log4j.api)
3333
implementation(libs.log4j.core)
34-
implementation(libs.log4j.slf4j.impl)
34+
implementation(libs.log4j.slf4j.impl) {
35+
exclude group: 'org.slf4j'
36+
}
3537
implementation(libs.log4j.api12)
3638
implementation(libs.log4j.layout.template.json)
39+
implementation(libs.slf4j.api)
3740

3841
// metrics
3942
implementation(libs.metrics.core)

0 commit comments

Comments
 (0)