Skip to content

Commit 8b73c72

Browse files
committed
latest dep test for the testReceiveSpansDisabled suite
1 parent c6991a3 commit 8b73c72

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

instrumentation/spring/spring-pulsar-1.2/javaagent/build.gradle.kts

+13-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ muzzle {
66
pass {
77
group.set("org.springframework.pulsar")
88
module.set("spring-pulsar")
9-
versions.set("[1.2.0,]")
9+
versions.set("[1.2.0,)")
1010
}
1111
}
1212

@@ -23,14 +23,23 @@ dependencies {
2323
testLibrary("org.springframework.boot:spring-boot-starter:3.2.4")
2424
}
2525

26+
val latestDepTest = findProperty("testLatestDeps") as Boolean
27+
2628
testing {
2729
suites {
2830
val testReceiveSpansDisabled by registering(JvmTestSuite::class) {
2931
dependencies {
3032
implementation(project(":instrumentation:spring:spring-pulsar-1.2:testing"))
31-
implementation("org.springframework.pulsar:spring-pulsar:1.2.0")
32-
implementation("org.springframework.boot:spring-boot-starter-test:3.2.4")
33-
implementation("org.springframework.boot:spring-boot-starter:3.2.4")
33+
34+
if (latestDepTest) {
35+
implementation("org.springframework.pulsar:spring-pulsar:latest.release")
36+
implementation("org.springframework.boot:spring-boot-starter-test:latest.release")
37+
implementation("org.springframework.boot:spring-boot-starter:latest.release")
38+
} else {
39+
implementation("org.springframework.pulsar:spring-pulsar:1.2.0")
40+
implementation("org.springframework.boot:spring-boot-starter-test:3.2.4")
41+
implementation("org.springframework.boot:spring-boot-starter:3.2.4")
42+
}
3443
}
3544

3645
targets {

0 commit comments

Comments
 (0)