Checkstyle shouldn't rely on current directory
diff --git a/build.gradle b/build.gradle
index 5900f4c..55eee1c 100644
--- a/build.gradle
+++ b/build.gradle
@@ -199,6 +199,7 @@
         if (rootProject.hasProperty("checkstyle.ignoreFailures")) {
             ignoreFailures = rootProject.properties["checkstyle.ignoreFailures"].toBoolean()
         }
+        configProperties["rootDir"] = rootDir
     }
 
     checkstyleMain {