Make testAll task depends on check; exclude test

This commit is contained in:
Artem Bilan
2017-07-19 17:15:47 -04:00
parent 7a67c1f1a3
commit bccaa52bd2

View File

@@ -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`