-
Notifications
You must be signed in to change notification settings - Fork 1k
Update spring-kafka latestDep tests for 4.0 #15435
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
base: main
Are you sure you want to change the base?
Conversation
instrumentation/spring/spring-kafka-2.7/javaagent/build.gradle.kts
Outdated
Show resolved
Hide resolved
| if (latestDepTest) { | ||
| library("org.springframework.boot:spring-boot-starter-kafka:latest.release") | ||
| } else { | ||
| library("org.springframework.kafka:spring-kafka:2.7.0") | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there no non-spring boot starter version now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what if you leave library("org.springframework.kafka:spring-kafka:2.7.0") here and add
latestDepTestLibrary("org.springframework.boot:spring-boot-starter-kafka:latest.release") down below?
| val springKafkaVersion = if (latestDepTest) "org.springframework.boot:spring-boot-starter-kafka:latest.release" else "org.springframework.kafka:spring-kafka:2.7.0" | ||
| val springBootVersion = if (latestDepTest) "latest.release" else "2.5.3" | ||
| implementation(springKafkaVersion) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when it's a whole different artifact I think I prefer
if (latestDepTest) {
implementation("..")
else {
implementation("..")
}
Related to #15429
The
BackgroundPreinitializingApplicationListenerignore is a common change amongst many of these modules, so that change is also present in some of the other PRs