You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Konrad Windszus (Jira)" <ji...@apache.org> on 2022/12/05 11:57:00 UTC

[jira] [Comment Edited] (MPOM-374) Autoformat *.groovy files

    [ https://issues.apache.org/jira/browse/MPOM-374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17643293#comment-17643293 ] 

Konrad Windszus edited comment on MPOM-374 at 12/5/22 11:56 AM:
----------------------------------------------------------------

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
{code}
[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 
{code}

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


was (Author: kwin):
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
{code}
[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 
{code}

> Autoformat *.groovy files
> -------------------------
>
>                 Key: MPOM-374
>                 URL: https://issues.apache.org/jira/browse/MPOM-374
>             Project: Maven POMs
>          Issue Type: Improvement
>          Components: maven
>    Affects Versions: MAVEN-38
>            Reporter: Konrad Windszus
>            Priority: Major
>
> As groovy is pretty common for integration tests we should autoformat those as well.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)