spring-cloud / spring-cloud-stream-binder-kafka

Spring Cloud Stream binders for Apache Kafka and Kafka Streams
Apache License 2.0
331 stars 301 forks source link

spring-kafka-test is compile (not test) dependency of spring-cloud-stream-binder-kafka-streams:3.2.3 and 3.2.4 #1219

Open simontankersley opened 2 years ago

simontankersley commented 2 years ago

See https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-stream-binder-kafka-streams/3.2.3 and https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-stream-binder-kafka-streams/3.2.4 and you will clearly see that spring-kafka-test is listed as a compile dependency

The cause seems to be that the scope was unspecified in the spring-cloud-stream-binder-kafka-stream pom but was specified in it's parent spring-cloud-stream-binder-kafka-parent. See https://repo1.maven.org/maven2/org/springframework/cloud/spring-cloud-stream-binder-kafka-parent/3.2.2/spring-cloud-stream-binder-kafka-parent-3.2.2.pom. However parent versions 3.2.3 and 3.2.4 don't contain spring-kafka-test and so spring-kafka-test gets the default scope (compile scope) in spring-cloud-stream-binder-kafka-streams.