|
@@ -45,8 +45,10 @@ testing {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+val testLatestDeps = findProperty("testLatestDeps") as Boolean
|
|
|
+
|
|
|
tasks {
|
|
|
- if (findProperty("testLatestDeps") as Boolean) {
|
|
|
+ if (testLatestDeps) {
|
|
|
// disable regular test running and compiling tasks when latest dep test task is run
|
|
|
named("test") {
|
|
|
enabled = false
|
|
@@ -54,9 +56,13 @@ tasks {
|
|
|
named("compileTestGroovy") {
|
|
|
enabled = false
|
|
|
}
|
|
|
+ }
|
|
|
|
|
|
- check {
|
|
|
- dependsOn(testing.suites)
|
|
|
- }
|
|
|
+ named("latestDepTest") {
|
|
|
+ enabled = testLatestDeps
|
|
|
+ }
|
|
|
+
|
|
|
+ check {
|
|
|
+ dependsOn(testing.suites)
|
|
|
}
|
|
|
}
|