@@ -12,6 +12,8 @@ muzzle {
1212 }
1313}
1414
15+ val latestDepTest = findProperty(" testLatestDeps" ) as Boolean
16+
1517dependencies {
1618 library(" org.springframework.pulsar:spring-pulsar:1.0.0" )
1719 implementation(project(" :instrumentation:pulsar:pulsar-2.8:javaagent" ))
@@ -23,12 +25,11 @@ dependencies {
2325 testLibrary(" org.springframework.boot:spring-boot-starter-test:3.2.4" )
2426 testLibrary(" org.springframework.boot:spring-boot-starter:3.2.4" )
2527
26- // tests don't work with spring boot 4 yet
27- latestDepTestLibrary (" org.springframework.boot:spring-boot-starter-test:3.+ " ) // documented limitation
28- latestDepTestLibrary( " org.springframework.boot:spring-boot-starter:3.+ " ) // documented limitation
28+ if (latestDepTest) {
29+ testLibrary (" org.springframework.boot:spring-boot-starter-pulsar:latest.release " )
30+ }
2931}
3032
31- val latestDepTest = findProperty(" testLatestDeps" ) as Boolean
3233val collectMetadata = findProperty(" collectMetadata" )?.toString() ? : " false"
3334
3435testing {
@@ -38,9 +39,9 @@ testing {
3839 implementation(project(" :instrumentation:spring:spring-pulsar-1.0:testing" ))
3940
4041 if (latestDepTest) {
41- implementation(" org.springframework.pulsar :spring-pulsar:latest.release" )
42- implementation(" org.springframework.boot:spring-boot-starter-test:3.+ " )
43- implementation(" org.springframework.boot:spring-boot-starter:3.+ " )
42+ implementation(" org.springframework.boot :spring-boot-starter -pulsar:latest.release" )
43+ implementation(" org.springframework.boot:spring-boot-starter-test:latest.release " )
44+ implementation(" org.springframework.boot:spring-boot-starter:latest.release " )
4445 } else {
4546 implementation(" org.springframework.pulsar:spring-pulsar:1.0.0" )
4647 implementation(" org.springframework.boot:spring-boot-starter-test:3.2.4" )
0 commit comments