diff --git a/build.gradle b/build.gradle index e2ca0bba3a..f931935a04 100644 --- a/build.gradle +++ b/build.gradle @@ -205,7 +205,13 @@ subprojects { subproject -> } } - task testAll(type: Test, dependsOn: [checkstyleMain, checkstyleTest]) + task testAll(type: Test, dependsOn: check) + + gradle.taskGraph.whenReady { graph -> + if (graph.hasTask(testAll)) { + test.enabled = false + } + } tasks.withType(Test).all { // suppress all console output during testing unless running `gradle -i`