maven-parent icon indicating copy to clipboard operation
maven-parent copied to clipboard

[MPOM-374] Autoformat *.groovy files

Open jira-importer opened this issue 3 years ago • 2 comments

Konrad Windszus opened MPOM-374 and commented

As groovy is pretty common for integration tests we should autoformat those as well.


Affects: MAVEN-38

Issue Links:

  • MPOM-349 Enable spotless for autoformatting

jira-importer avatar Dec 05 '22 10:12 jira-importer

Konrad Windszus commented

At least adding the license header does not work for groovy scripts (as used by maven-invoker-plugin). The spotless-maven-plugin then fails with

[ERROR] Step 'com.diffplug.spotless.generic.LicenseHeaderStep' found problem in 'src/it/packaging-jar/verify.groovy':
Unable to find delimiter regex ^package 
java.lang.IllegalArgumentException: Unable to find delimiter regex ^package 

I raised https://github.com/diffplug/spotless/issues/1418 to track that.

jira-importer avatar Dec 05 '22 11:12 jira-importer

Slawomir Jaranowski commented

Project issues moved to GitHub, please copy to it.

jira-importer avatar Apr 21 '24 08:04 jira-importer