slachiewicz commented on PR #525:
URL: https://github.com/apache/maven-parent/pull/525#issuecomment-7173781503

   `ae26d34` switches the Groovy step to a formatter. Findings from running it 
over all 1,339 `.groovy` files in the apache/maven-* repositories:
   
   - The `licenseHeader` step can't work for hook scripts: they have no package 
line, and the first statement varies (`import`, `def`, `File`, `assert`, ...). 
RAT already checks the headers, so the step is dropped.
   - `**/*.groovy` also matches archetype templates and project sources inside 
ITs. greclipse fails on 3 of those files, so the includes are now 
`**/src/it/**/*.groovy` minus those fixtures.
   - greclipse defaults indent with tabs and break every list literal over 30 
characters across lines. The settings go into 
`config/maven-groovy-eclipse.properties` in maven-shared-resources 
(apache/maven-shared-resources#96), so this needs a shared-resources release 
before it can merge.
   - In 3 maven-assembly-plugin scripts, greclipse moves a bare `{ ... }` block 
onto the previous line, which changes what the script parses to. The sweep in 
apache/maven-invoker-plugin#811 checks every formatted file's AST against the 
original and rewrites those blocks by hand.
   - spotless resolves Groovy-Eclipse through p2 from groovy.jfrog.io and 
download.eclipse.org, not Maven Central. Builds behind a Central-only mirror 
can't run this step.
   
   Suggested order: the PRs linked from apache/maven-invoker-plugin#811 first, 
including the `-4.x` branches Dependabot also bumps (they format with the same 
settings), then the shared-resources release, then this PR with 
`version.maven-shared-resources` bumped. Verified: 
apache/maven-clean-plugin#401's branch passes `spotless:check` with this PR and 
the new settings; maven-clean-plugin master fails it.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to