-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add dependency of correct version kafka-streams-test-utils #1084
Comments
I think the story is really about Spring Boot dependency management. Add this one for the There problem is that that there is nothing in We may reconsider though if there are some features to to the Does it make sense? I might just miss a big picture here, so I'm open for the further discussion. |
I expect Gary was thinking handling the dependency here in spring kafka and that way keep the version in sync with other spring-kafka kafka depenedencies. If it would be added only to Spring Boot dependency management there is the risk you mentioned about different Kafka versions in Spring Boot and Spring Kafka. |
As I said in the other thread; we will also need a change to initializr to pull in the test jar in test scope anyway. I am not sure, yet, whether we can add value, but it wouldn't hurt to add a sub-project anyway; even if it just pulls in the dependency for now. Or, maybe we can just add the streams deps to the existing test jar, which is only in test scope - maybe that would be simpler. |
Yes, I agree. Quoting myself from other thread.
|
There is no yet need in the Nevertheless we should consider to add it into the Spring Boot dependency management for consistency. In the end exactly Boot dictates us what runtime dependencies are going to be used in our project by default. |
This means we won't need an initializr change. |
This is good. Thanks. |
This jar is now a dependency of spring-kafka-test which is added in test scope by initializr. See spring-projects/spring-kafka#1084
TopologyTestDriver based Kafka Streams test require dependency package org.apache-kafka:kafka-streams-test-utils. I have not seen this referenced in spring-kafka or spring-cloud packages. So now you need to kafka.version of this package in sync with spring-kafka-test kafka version.
It would be a good idea to add kafka-streams-test-utils as dependence to spring-kafka-test or add separate spring-kafka-streams-test package?
This is relating the discussion in spring-cloud/spring-cloud-stream-samples#144 and @garyrussell request to create issue here.
The text was updated successfully, but these errors were encountered: