Skip to content

Commit 69b5319

Browse files
authored
Fix running vertx-web-3.0 tests (#10549)
1 parent 36ee564 commit 69b5319

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

instrumentation/vertx/vertx-web-3.0/javaagent/build.gradle.kts

+10-4
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,24 @@ testing {
4545
}
4646
}
4747

48+
val testLatestDeps = findProperty("testLatestDeps") as Boolean
49+
4850
tasks {
49-
if (findProperty("testLatestDeps") as Boolean) {
51+
if (testLatestDeps) {
5052
// disable regular test running and compiling tasks when latest dep test task is run
5153
named("test") {
5254
enabled = false
5355
}
5456
named("compileTestGroovy") {
5557
enabled = false
5658
}
59+
}
5760

58-
check {
59-
dependsOn(testing.suites)
60-
}
61+
named("latestDepTest") {
62+
enabled = testLatestDeps
63+
}
64+
65+
check {
66+
dependsOn(testing.suites)
6167
}
6268
}

0 commit comments

Comments
 (0)