diff --git a/build.gradle b/build.gradle index 321f486bafbdd03f5cee4189c6a8b7d770af793e..285e8c4b8510803f14e9ea1c787513a1e762df43 100644 --- a/build.gradle +++ b/build.gradle @@ -17,12 +17,7 @@ task runHazard(type: JavaExec) { dependsOn(":src:hazard:run") } -apply from: "${rootDir}/gradle/dependencies.gradle" apply from: "${rootDir}/gradle/node.gradle" -apply from: "${rootDir}/gradle/spotbugs.gradle" -apply from: "${rootDir}/gradle/spotless.gradle" -apply from: "${rootDir}/gradle/repositories.gradle" - subprojects { apply plugin: "application" @@ -46,6 +41,8 @@ subprojects { apply from: "${rootDir}/gradle/dependencies.gradle" apply from: "${rootDir}/gradle/git-hooks.gradle" apply from: "${rootDir}/gradle/repositories.gradle" + apply from: "${rootDir}/gradle/spotbugs.gradle" + apply from: "${rootDir}/gradle/spotless.gradle" test { useJUnitPlatform() diff --git a/gradle/spotbugs.gradle b/gradle/spotbugs.gradle index 51f1a63a2462892bd53bd2c7ebb05a6a6636653e..32ae4ab0bcb0b1e12cc7ebe657c34b7cb7023585 100644 --- a/gradle/spotbugs.gradle +++ b/gradle/spotbugs.gradle @@ -6,6 +6,6 @@ apply plugin: "com.github.spotbugs" * See https://spotbugs.readthedocs.io */ spotbugs { - excludeFilter = file("${projectDir}/gradle/spotbugs-filter.xml") + excludeFilter = file("${rootDir}/gradle/spotbugs-filter.xml") effort = "max" }