Commit b6f78bc
committed
Replace log4j-slf4j-impl with slf4j-api in spring-kafka-test
Change spring-kafka-test to depend on slf4j-api instead of
log4j-slf4j-impl. This removes the forced Log4j binding from the
API surface, allowing consumers to choose their own SLF4J
implementation while still providing the compile-time dependency
required by Kafka's Utils class.
The slf4j-api dependency is needed because Kafka 4.x client libraries
use SLF4J for logging (e.g., Utils.closeQuietly() references
org.slf4j.Logger). Tests continue to use Log4j via the testRuntimeOnly
dependency configured globally.
Signed-off-by: Soby Chacko <soby.chacko@broadcom.com>1 parent 67687a1 commit b6f78bc
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| |||
314 | 315 | | |
315 | 316 | | |
316 | 317 | | |
317 | | - | |
| 318 | + | |
318 | 319 | | |
319 | 320 | | |
320 | 321 | | |
| |||
0 commit comments