diff --git a/build.gradle b/build.gradle index 1862cec6..58cfe413 100644 --- a/build.gradle +++ b/build.gradle @@ -69,7 +69,7 @@ subprojects { if (it =~ /\nimport .*\*;/) { throw new IllegalStateException("Do not use wildcard imports, 'spotlessApply' cannot resolve this issue, please fix it manually.") } - }) + } as Closure) } } @@ -77,7 +77,7 @@ subprojects { apply plugin: 'com.github.spotbugs' spotbugs { spotbugsTest.enabled = false - omitVisitors.addAll 'FindReturnRef', 'MethodReturnCheck' + omitVisitors.addAll 'FindReturnRef' excludeFilter = file("${rootDir}/config/spotbugs/exclude.xml") } } @@ -87,5 +87,4 @@ tasks.register('installGitHook', Copy) { into { new File(rootProject.rootDir, '.git/hooks') } fileMode 0775 } - -build.dependsOn installGitHook +compileJava.dependsOn installGitHook