From 22f08b7cbfd81fe328941702cb023850a1da1c21 Mon Sep 17 00:00:00 2001 From: Miles Ziemer <45497130+milesziemer@users.noreply.github.com> Date: Thu, 11 Apr 2024 20:55:47 -0400 Subject: [PATCH] chore(codegen): fix checkstyle config (#5996) Checkstyle looks for suppressions based on the configDirectory, which I didn't update when changing the config dir -> gradleConfig. --- codegen/build.gradle.kts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/codegen/build.gradle.kts b/codegen/build.gradle.kts index 2649f48ef7805..1ab73783db718 100644 --- a/codegen/build.gradle.kts +++ b/codegen/build.gradle.kts @@ -183,8 +183,9 @@ subprojects { * ==================================================== */ apply(plugin = "checkstyle") + checkstyle { - configFile = File("${project.rootDir}/gradleConfig/checkstyle/checkstyle.xml") + configDirectory.set(rootProject.file("gradleConfig/checkstyle")) } tasks["checkstyleTest"].enabled = false @@ -240,7 +241,7 @@ subprojects { // Configure the bug filter for spotbugs. spotbugs { setEffort("max") - val excludeFile = File("${project.rootDir}/gradleConfig/spotbugs/filter.xml") + val excludeFile = rootProject.file("gradleConfig/spotbugs/filter.xml") if (excludeFile.exists()) { excludeFilter.set(excludeFile) }