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

[1.0.x] Enforce & Apply spotless #5374

Merged
merged 5 commits into from
Aug 14, 2022
Merged

[1.0.x] Enforce & Apply spotless #5374

merged 5 commits into from
Aug 14, 2022

Conversation

nastra
Copy link
Contributor

@nastra nastra commented Jul 28, 2022

No description provided.

nastra added 5 commits July 28, 2022 10:27
This is the minimal set of checkstyle rules that were conflicting with
the code format that Spotless would apply. Additionally, this adds a few
`MethodLength` suppressions since those methods will become slightly
longer than the limit after formatting has been applied.
Given that CI runs builds with JDK 8 & 11, the google-java-format will
actually pick different google-java-format versions depending on the JDK
being used (JDK8=google-java-format 1.7 / JDK11=google-java-format
latest). Those different google-java-format version are actually
producing different formatting results, thus we have to use
google-java-format 1.7 here to make things consistent across JDK
versions.
The actual command needs to be executed with JDK 8:
./gradlew spotlessApply -DflinkVersions=1.13,1.14,1.15 -DsparkVersions=2.4,3.0,3.1,3.2,3.3 -DhiveVersions=2,3 --no-build-cache
@rdblue rdblue merged commit 0da95d1 into apache:1.0.x Aug 14, 2022
@rdblue
Copy link
Contributor

rdblue commented Aug 14, 2022

Thanks, @nastra!

@nastra nastra deleted the 1.0.x branch August 15, 2022 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants