File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -183,8 +183,9 @@ subprojects {
183183 * ====================================================
184184 */
185185 apply (plugin = " checkstyle" )
186+
186187 checkstyle {
187- configFile = File ( " ${project.rootDir} / gradleConfig/checkstyle/checkstyle.xml " )
188+ configDirectory.set(rootProject.file( " gradleConfig/checkstyle" ) )
188189 }
189190
190191 tasks[" checkstyleTest" ].enabled = false
@@ -240,7 +241,7 @@ subprojects {
240241 // Configure the bug filter for spotbugs.
241242 spotbugs {
242243 setEffort(" max" )
243- val excludeFile = File ( " ${project.rootDir} / gradleConfig/spotbugs/filter.xml" )
244+ val excludeFile = rootProject.file( " gradleConfig/spotbugs/filter.xml" )
244245 if (excludeFile.exists()) {
245246 excludeFilter.set(excludeFile)
246247 }
You can’t perform that action at this time.
0 commit comments