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

Conversation

mernst
Copy link
Member

@mernst mernst commented Sep 14, 2022

I added the changes in #5325 to this PR to test that they fix the bug exposed by this PR. Merge #5325 first.

build.gradle Show resolved Hide resolved
build.gradle Show resolved Hide resolved
@smillst smillst assigned mernst and unassigned smillst Sep 15, 2022
@mernst mernst assigned smillst and unassigned mernst Sep 15, 2022
smillst
smillst previously approved these changes Sep 15, 2022
@smillst smillst enabled auto-merge (squash) September 15, 2022 17:57
@mernst
Copy link
Member Author

mernst commented Sep 15, 2022

@smillst Can you look at the CI failures?

@smillst
Copy link
Member

smillst commented Sep 16, 2022

I can reproduce this on master with the following command:

./gradlew clean
./gradlew spotlessApply

This seems to be a general problem with the way the spotless plugin works for subprojects. diffplug/spotless#715 is somewhat related. I'm trying to figure out a work around.

@smillst
Copy link
Member

smillst commented Sep 16, 2022

The problem is that checker-qual is a dependency of google-java-format and Gradle is trying to use the built from source version. I'm still working on a fix, but it's a Checker Framework specific problem.

@smillst smillst enabled auto-merge (squash) September 19, 2022 20:16
@mernst mernst disabled auto-merge September 19, 2022 22:22
@mernst mernst merged commit 007340b into typetools:master Sep 19, 2022
@mernst mernst deleted the spotless-java8 branch September 19, 2022 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants