diff --git a/build.gradle b/build.gradle index 140ec6b785..4c14f70419 100644 --- a/build.gradle +++ b/build.gradle @@ -330,7 +330,7 @@ subprojects { subproject -> checkstyle { configFile = file("$rootDir/src/checkstyle/checkstyle.xml") - toolVersion = '8.26' + toolVersion = project.hasProperty('checkstyleVersion') ? project.checkstyleVersion : '8.26' } artifacts {