Skip to content

Commit 04d0ef1

Browse files
committed
checkstyle dropped java8 support
1 parent 9ad6d0d commit 04d0ef1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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()

gradle/libs.versions.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ animalsniffer-annotations = "org.codehaus.mojo:animal-sniffer-annotations:1.23"
2626
auto-value = "com.google.auto.value:auto-value:1.10.2"
2727
auto-value-annotations = "com.google.auto.value:auto-value-annotations:1.10.2"
2828
checkstyle = "com.puppycrawl.tools:checkstyle:10.12.1"
29+
checkstylejava8 = "com.puppycrawl.tools:checkstyle:9.3"
2930
commons-math3 = "org.apache.commons:commons-math3:3.6.1"
3031
conscrypt = "org.conscrypt:conscrypt-openjdk-uber:2.5.2"
3132
cronet-api = "org.chromium.net:cronet-api:108.5359.79"

0 commit comments

Comments
 (0)