Skip to content

Commit 2e10cc8

Browse files
committed
Add checkstyleVersion Gradle CLI property
Related to checkstyle/checkstyle#7306 According to discussion with Checkstyle team, we agreed to give us project for testing their latest changes for regressions to avoid situation like in the mentioned issue with `RequireThis` * We expose a `checkstyleVersion` for Gradle command line to let to provide a Checkstyle version externally. This feature is going to be used on Checkstyle CI to run check in our project against their SNAPSHOT The command to run checks against external version is like this: `./gradlew clean check --parallel -x test -PcheckstyleVersion=[CHECKSTYLE_VERSION]` Where `[CHECKSTYLE_VERSION]` is a placeholder which should be replaced with environment-specific variable or an explicit version.
1 parent 2d13032 commit 2e10cc8

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
@@ -330,7 +330,7 @@ subprojects { subproject ->
330330

331331
checkstyle {
332332
configFile = file("$rootDir/src/checkstyle/checkstyle.xml")
333-
toolVersion = '8.26'
333+
toolVersion = project.hasProperty('checkstyleVersion') ? project.checkstyleVersion : '8.26'
334334
}
335335

336336
artifacts {

0 commit comments

Comments
 (0)