File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,8 @@ subprojects {
162162
163163 checkstyle {
164164 configDirectory = file(" $rootDir /buildscripts" )
165- toolVersion = libs. checkstyle. get(). version
165+ toolVersion = JavaVersion . current(). isJava11Compatible() ? libs. checkstyle. get(). version : libs. checkstylejava8. get(). version
166+
166167 ignoreFailures = false
167168 if (rootProject. hasProperty(" checkstyle.ignoreFailures" )) {
168169 ignoreFailures = rootProject. properties[" checkstyle.ignoreFailures" ]. toBoolean()
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ animalsniffer-annotations = "org.codehaus.mojo:animal-sniffer-annotations:1.23"
2626auto-value = " com.google.auto.value:auto-value:1.10.2"
2727auto-value-annotations = " com.google.auto.value:auto-value-annotations:1.10.2"
2828checkstyle = " com.puppycrawl.tools:checkstyle:10.12.1"
29+ checkstylejava8 = " com.puppycrawl.tools:checkstyle:9.3"
2930commons-math3 = " org.apache.commons:commons-math3:3.6.1"
3031conscrypt = " org.conscrypt:conscrypt-openjdk-uber:2.5.2"
3132cronet-api = " org.chromium.net:cronet-api:108.5359.79"
You can’t perform that action at this time.
0 commit comments