Uh oh!
There was an error while loading. Please reload this page.
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
8fbda83CompareDowngrate spotless to 2.30.0 (last java 8 release)
vibhatha
commented
Apr 15, 2024
@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... |
lidavidm
commented
Apr 16, 2024
I think we can do this first. @vibhatha would it conflict? |
vibhatha
commented
Apr 16, 2024
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. |
vibhatha
commented
Apr 16, 2024
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. |
lidavidm
commented
Apr 16, 2024
The previous PR formatted nearly everything. |
vibhatha
left a comment
There was a problem hiding this comment.
Looks fine to me. Let's verify the CIs.
vibhatha
commented
Apr 17, 2024
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. |
vibhatha
commented
Apr 17, 2024
But this PR is manageable. We can use the other spotless tickets to format code and licenses. |
vibhatha
commented
Apr 17, 2024
@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>
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.xmlfilesAre these changes tested?
No new test as no code change (just formatting)
Are there any user-facing changes?
None