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 {
183
183
* ====================================================
184
184
*/
185
185
apply (plugin = " checkstyle" )
186
+
186
187
checkstyle {
187
- configFile = File ( " ${project.rootDir} / gradleConfig/checkstyle/checkstyle.xml " )
188
+ configDirectory.set(rootProject.file( " gradleConfig/checkstyle" ) )
188
189
}
189
190
190
191
tasks[" checkstyleTest" ].enabled = false
@@ -240,7 +241,7 @@ subprojects {
240
241
// Configure the bug filter for spotbugs.
241
242
spotbugs {
242
243
setEffort(" max" )
243
- val excludeFile = File ( " ${project.rootDir} / gradleConfig/spotbugs/filter.xml" )
244
+ val excludeFile = rootProject.file( " gradleConfig/spotbugs/filter.xml" )
244
245
if (excludeFile.exists()) {
245
246
excludeFilter.set(excludeFile)
246
247
}
You can’t perform that action at this time.
0 commit comments