Skip to content

Commit

Permalink
Don't run Java formatting under JDK 8
Browse files Browse the repository at this point in the history
  • Loading branch information
mernst authored Sep 19, 2022
1 parent 60ad9c6 commit 007340b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,16 @@ allprojects {
formatAnnotations()
}
}
// The Spotless plugin uses the latest version of google-java-format
// that is compatible with the currently running JVM. Under Java 8,
// that is an older version that produces different formatting.
if (isJava8) {
spotlessApply.enabled = false
spotlessCheck.enabled = false
spotlessJavaApply.enabled = false
spotlessJavaCheck.enabled = false
}


// After all the tasks have been created, modify some of them.
afterEvaluate {
Expand Down

0 comments on commit 007340b

Please sign in to comment.