diff --git a/gradle/validation/precommit.gradle b/gradle/validation/precommit.gradle index 94ed800cb28..79347646454 100644 --- a/gradle/validation/precommit.gradle +++ b/gradle/validation/precommit.gradle @@ -44,5 +44,9 @@ configure(rootProject) { ]} } } + + // Each validation task should be attached to check but make sure + // precommit() as a whole is a dependency on rootProject.check + check.dependsOn precommit }