Skip to content

Commit

Permalink
checkstyle dropped java8 support
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiitk committed Jul 19, 2023
1 parent 917ba15 commit 80f938b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ subprojects {

checkstyle {
configDirectory = file("$rootDir/buildscripts")
toolVersion = libs.checkstyle.get().version
toolVersion = JavaVersion.current().isJava11Compatible() ? libs.checkstyle.get().version : libs.checkstylejava8.get().version

ignoreFailures = false
if (rootProject.hasProperty("checkstyle.ignoreFailures")) {
ignoreFailures = rootProject.properties["checkstyle.ignoreFailures"].toBoolean()
Expand Down
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ animalsniffer-annotations = "org.codehaus.mojo:animal-sniffer-annotations:1.23"
auto-value = "com.google.auto.value:auto-value:1.10.2"
auto-value-annotations = "com.google.auto.value:auto-value-annotations:1.10.2"
checkstyle = "com.puppycrawl.tools:checkstyle:10.12.1"
checkstylejava8 = "com.puppycrawl.tools:checkstyle:9.3"
commons-math3 = "org.apache.commons:commons-math3:3.6.1"
conscrypt = "org.conscrypt:conscrypt-openjdk-uber:2.5.2"
cronet-api = "org.chromium.net:cronet-api:108.5359.79"
Expand Down

0 comments on commit 80f938b

Please sign in to comment.