You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Matt Sicker (Jira)" <ji...@apache.org> on 2022/11/20 18:29:00 UTC

[jira] [Resolved] (LOG4J2-3637) Spotless build plugin failing in CI is way too late

     [ https://issues.apache.org/jira/browse/LOG4J2-3637?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Sicker resolved LOG4J2-3637.
---------------------------------
    Resolution: Workaround

Seems as though git doesn't let you clone this with a repository. Workaround:

Create an executable shell script named {{.git/hooks/pre-commit}} with invocation of {{mvn spotless:apply -pl "!log4j-bom" -T4C}}

> Spotless build plugin failing in CI is way too late
> ---------------------------------------------------
>
>                 Key: LOG4J2-3637
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-3637
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Build
>            Reporter: Matt Sicker
>            Priority: Major
>
> Applying auto-formatting as required for a clean build should be implemented as a git pre-commit hook.



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