Skip to content

Commit 0d51061

Browse files
authored
Update spring-kafka latestDep tests for 4.0 (#15435)
1 parent 4cdc61f commit 0d51061

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

instrumentation/spring/spring-kafka-2.7/javaagent/build.gradle.kts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@ dependencies {
3030

3131
testLibrary("org.springframework.boot:spring-boot-starter-test:2.5.3")
3232
testLibrary("org.springframework.boot:spring-boot-starter:2.5.3")
33-
34-
// tests don't work with spring boot 4 yet
35-
latestDepTestLibrary("org.springframework.boot:spring-boot-starter-test:3.+") // documented limitation
36-
latestDepTestLibrary("org.springframework.boot:spring-boot-starter:3.+") // documented limitation
33+
latestDepTestLibrary("org.springframework.boot:spring-boot-starter-kafka:latest.release")
3734
}
3835

3936
val latestDepTest = findProperty("testLatestDeps") as Boolean
@@ -47,10 +44,14 @@ testing {
4744

4845
// the "library" configuration is not recognized by the test suite plugin
4946
val springKafkaVersion = if (latestDepTest) "latest.release" else "2.7.0"
50-
val springBootVersion = if (latestDepTest) "3.+" else "2.5.3"
47+
val springBootVersion = if (latestDepTest) "latest.release" else "2.5.3"
5148
implementation("org.springframework.kafka:spring-kafka:$springKafkaVersion")
5249
implementation("org.springframework.boot:spring-boot-starter-test:$springBootVersion")
5350
implementation("org.springframework.boot:spring-boot-starter:$springBootVersion")
51+
52+
if (latestDepTest) {
53+
implementation("org.springframework.boot:spring-boot-starter-kafka:latest.release")
54+
}
5455
}
5556

5657
targets {

0 commit comments

Comments
 (0)