Skip to content

Commit c831259

Browse files
committed
Add missed rootProject for Checkstyle location
The Checkstyle plugin is applied in every sub-project and Gradle `file()` function uses that sub-project absolute path if the path provided is relative * Add a `rootProject` reference for `file()` function to ensure that we obtain Checkstyle config location exactly from the root project
1 parent 0fe7424 commit c831259

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ subprojects { subproject ->
176176
}
177177

178178
checkstyle {
179-
configDirectory.set(file("src/checkstyle"))
179+
configDirectory.set(rootProject.file("src/checkstyle"))
180180
toolVersion = '8.24'
181181
}
182182

0 commit comments

Comments
 (0)