Skip to content

Commit bcdd523

Browse files
garyrussellartembilan
authored andcommitted
GH-1991: Exclude slf4j impl and log4j via Zookeeper
Resolves #1991 We had to add ZK to the spring-kafka-test classpath because Kafka no longer puts it on the compile classpath since 3.0.0. This inadvertently pulled in undesired logging dependencies.
1 parent 0ebad52 commit bcdd523

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,10 @@ project ('spring-kafka-test') {
342342
exclude group: 'org.springframework'
343343
}
344344

345-
api "org.apache.zookeeper:zookeeper:$zookeeperVersion"
345+
api ("org.apache.zookeeper:zookeeper:$zookeeperVersion") {
346+
exclude group: 'org.slf4j', module: 'slf4j-log4j12'
347+
exclude group: 'log4j'
348+
}
346349
api "org.apache.kafka:kafka-clients:$kafkaVersion:test"
347350
api "org.apache.kafka:kafka-metadata:$kafkaVersion"
348351
api "org.apache.kafka:kafka-streams-test-utils:$kafkaVersion"

0 commit comments

Comments
 (0)