From bccaa52bd2d766b82e5c75ad59a5f8b4abe7be32 Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Wed, 19 Jul 2017 17:15:47 -0400 Subject: [PATCH] Make testAll task depends on check; exclude test --- build.gradle | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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`