Skip to content

Commit f3958ae

Browse files
committed
Add Spring Kafka test utilities to Kafka test starter
Closes gh-47793
1 parent 9bf7123 commit f3958ae

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

smoke-test/spring-boot-smoke-test-kafka/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ dependencies {
4444

4545
testImplementation(project(":starter:spring-boot-starter-kafka-test"))
4646
testImplementation("org.awaitility:awaitility")
47-
testImplementation("org.springframework.kafka:spring-kafka-test")
4847
}
4948

5049
tasks.named("compileTestJava") {

starter/spring-boot-starter-kafka-test/build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,14 @@ description = "Starter for testing Apache Kafka"
2323
dependencies {
2424
api(project(":starter:spring-boot-starter-kafka"))
2525
api(project(":starter:spring-boot-starter-test"))
26+
api("org.springframework.kafka:spring-kafka-test") {
27+
exclude group: "org.apache.logging.log4j", module: "log4j-slf4j-impl"
28+
}
29+
}
30+
31+
checkRuntimeClasspathForConflicts {
32+
ignore { name -> name == "NOTICE" ||
33+
name.equals("kafka/kafka-version.properties") ||
34+
name.equals("log4j2.yaml")
35+
}
2636
}

0 commit comments

Comments
 (0)