[
https://issues.apache.org/jira/browse/SLING-13125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Konrad Windszus updated SLING-13125:
------------------------------------
Description:
Currently spotless is only executed with goal {{check}} except if explicitly
executed with profile {{format}}
(https://github.com/apache/sling-parent/blob/ffb3519dc63902512fa32a080c0c5eb271da9985/sling-parent/pom.xml#L1198-L1222).
One could automatically enable the format profile to be active in local builds.
The same was done in Maven with
https://github.com/apache/maven-parent/commit/b679a70738a4bf9081ee0d0a4bcfe023dfb09d16.
One can rely on the environment variable {{CI}} which should be set inside
GHA/Jenkins.
was:
Currently spotless is only executed with goal {{check}} except if explicitly
executed with profile {{format}}.
One could automatically enable the format profile to be active in local builds.
The same was done in Maven with
https://github.com/apache/maven-parent/commit/b679a70738a4bf9081ee0d0a4bcfe023dfb09d16.
One can rely on the environment variable {{CI}} which should be set inside
GHA/Jenkins.
> Parent: Auto-Format with Spotless outside CI builds
> ---------------------------------------------------
>
> Key: SLING-13125
> URL: https://issues.apache.org/jira/browse/SLING-13125
> Project: Sling
> Issue Type: Improvement
> Components: General
> Reporter: Konrad Windszus
> Priority: Major
> Fix For: Parent 67
>
>
> Currently spotless is only executed with goal {{check}} except if explicitly
> executed with profile {{format}}
> (https://github.com/apache/sling-parent/blob/ffb3519dc63902512fa32a080c0c5eb271da9985/sling-parent/pom.xml#L1198-L1222).
> One could automatically enable the format profile to be active in local
> builds. The same was done in Maven with
> https://github.com/apache/maven-parent/commit/b679a70738a4bf9081ee0d0a4bcfe023dfb09d16.
> One can rely on the environment variable {{CI}} which should be set inside
> GHA/Jenkins.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)