Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

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 this issue Jun 10, 2022 · 0 comments

Comments

@simontankersley
Copy link

simontankersley commented Jun 10, 2022

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant