diff --git a/build.gradle b/build.gradle
index 9c05c9654c50e401d0d493aa27cb26507badaf95..321f486bafbdd03f5cee4189c6a8b7d770af793e 100644
--- a/build.gradle
+++ b/build.gradle
@@ -18,7 +18,6 @@ task runHazard(type: JavaExec) {
 }
 
 apply from: "${rootDir}/gradle/dependencies.gradle"
-apply from: "${rootDir}/gradle/git-hooks.gradle"
 apply from: "${rootDir}/gradle/node.gradle"
 apply from: "${rootDir}/gradle/spotbugs.gradle"
 apply from: "${rootDir}/gradle/spotless.gradle"
@@ -45,6 +44,7 @@ subprojects {
   targetCompatibility = JavaVersion.VERSION_11
 
   apply from: "${rootDir}/gradle/dependencies.gradle"
+  apply from: "${rootDir}/gradle/git-hooks.gradle"
   apply from: "${rootDir}/gradle/repositories.gradle"
 
   test {