-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
GH-41173: [Java] Add spotless configuration for Maven pom.xml files #41174
GH-41173: [Java] Add spotless configuration for Maven pom.xml files #41174
Conversation
Thanks for opening a pull request! If this is not a minor PR. Could you open an issue for this pull request on GitHub? https://github.com/apache/arrow/issues/new/choose Opening GitHub issues ahead of time contributes to the Openness of the Apache Arrow project. Then could you also rename the pull request title in the following format?
or
In the case of PARQUET issues on JIRA the title also supports:
See also: |
…iles To make sure that all pom.xml files follow the same convention regarding indentation and organization, add spotless plugin with sortPom module to check and format the files automatically. Update Java developer documentation to provide the link to the convention and instructions on how to use spotless *Note* this change does not include changes to pom.xml files (and would fail the build. Changes to pom.xml files are in the next commit.
Apply spotless formatter to all pom.xml files
5167672
to
8fbda83
Compare
|
Downgrate spotless to 2.30.0 (last java 8 release)
@laurentgo there is already and effort to add this module by module: #40757 |
I saw the spotless change but I assumed (wrongly) it was for Java files, not I would argue that At the same time, as someone who's offering/trying to clean up those files, it's kind of hard to have to match each file own style... |
I think we can do this first. @vibhatha would it conflict? |
This is formatting all poms. I thought we wanted a smaller diff as a previous PR was closed for the length of it. If this solves the problem, let's close the issues created per module. Also I would recommend to check existing issues before creating new ones. |
It's fine. Let's try to wrap up this PR. Objective is to format code and xml both. If this PR is only doing xml format we can declare that and make code changes in the other list. Also please feel free to work on those issues if it's in the scope. |
The previous PR formatted nearly everything. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine to me. Let's verify the CIs.
Yes, except the Java. I looked into the changes. I am not an expert with spotless, but this only formats the pom. It would be very hard to be sure about all formatting. I will run the crossbows and validate. That should be one validator. I think we decided to go module by module since it's hard to eye-check everything in a single PR. |
But this PR is manageable. We can use the other spotless tickets to format code and licenses. |
@github-actions crossbow submit -g java |
Revision: 590d4e9 Submitted crossbow builds: ursacomputing/crossbow @ actions-c929748329 |
After merging your PR, Conbench analyzed the 6 benchmarking runs that have been run so far on merge-commit 7003e90. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 8 possible false positives for unstable benchmarks that are known to sometimes produce them. |
…iles (apache#41174) ### What changes are included in this PR? To make sure that all pom.xml files follow the same convention regarding indentation and organization, add spotless plugin with sortPom module to check and format the files automatically. Update Java developer documentation to provide the link to the convention and instructions on how to use spotless Finally apply the convention to all `pom.xml` files ### Are these changes tested? No new test as no code change (just formatting) ### Are there any user-facing changes? None * GitHub Issue: apache#41173 Authored-by: Laurent Goujon <laurent@apache.org> Signed-off-by: David Li <li.davidm96@gmail.com>
…iles (apache#41174) ### What changes are included in this PR? To make sure that all pom.xml files follow the same convention regarding indentation and organization, add spotless plugin with sortPom module to check and format the files automatically. Update Java developer documentation to provide the link to the convention and instructions on how to use spotless Finally apply the convention to all `pom.xml` files ### Are these changes tested? No new test as no code change (just formatting) ### Are there any user-facing changes? None * GitHub Issue: apache#41173 Authored-by: Laurent Goujon <laurent@apache.org> Signed-off-by: David Li <li.davidm96@gmail.com>
…iles (apache#41174) ### What changes are included in this PR? To make sure that all pom.xml files follow the same convention regarding indentation and organization, add spotless plugin with sortPom module to check and format the files automatically. Update Java developer documentation to provide the link to the convention and instructions on how to use spotless Finally apply the convention to all `pom.xml` files ### Are these changes tested? No new test as no code change (just formatting) ### Are there any user-facing changes? None * GitHub Issue: apache#41173 Authored-by: Laurent Goujon <laurent@apache.org> Signed-off-by: David Li <li.davidm96@gmail.com>
…iles (apache#41174) ### What changes are included in this PR? To make sure that all pom.xml files follow the same convention regarding indentation and organization, add spotless plugin with sortPom module to check and format the files automatically. Update Java developer documentation to provide the link to the convention and instructions on how to use spotless Finally apply the convention to all `pom.xml` files ### Are these changes tested? No new test as no code change (just formatting) ### Are there any user-facing changes? None * GitHub Issue: apache#41173 Authored-by: Laurent Goujon <laurent@apache.org> Signed-off-by: David Li <li.davidm96@gmail.com>
…iles (apache#41174) ### What changes are included in this PR? To make sure that all pom.xml files follow the same convention regarding indentation and organization, add spotless plugin with sortPom module to check and format the files automatically. Update Java developer documentation to provide the link to the convention and instructions on how to use spotless Finally apply the convention to all `pom.xml` files ### Are these changes tested? No new test as no code change (just formatting) ### Are there any user-facing changes? None * GitHub Issue: apache#41173 Authored-by: Laurent Goujon <laurent@apache.org> Signed-off-by: David Li <li.davidm96@gmail.com>
What changes are included in this PR?
To make sure that all pom.xml files follow the same convention regarding indentation and organization, add spotless plugin with sortPom module to check and format the files automatically.
Update Java developer documentation to provide the link to the convention and instructions on how to use spotless
Finally apply the convention to all
pom.xml
filesAre these changes tested?
No new test as no code change (just formatting)
Are there any user-facing changes?
None