Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't run Java formatting under JDK 8 #5308

Merged
merged 6 commits into from
Sep 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,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
}

mernst marked this conversation as resolved.
Show resolved Hide resolved

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