Skip to content

Commit

Permalink
Workaround for reformatted pom by release:prepare
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed Dec 6, 2022
1 parent b7295ce commit 08bbbb2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@
<checkstyle.version>9.3</checkstyle.version>
<!-- configuration for checkstyle to use with spotless -->
<checkstyle.spotless.config>config/maven_checks_nocodestyle.xml</checkstyle.spotless.config>
<!-- default gaol used by spotless -->
<spotless.goal>check</spotless.goal>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -461,6 +463,10 @@
<arguments>-Pmojo-release</arguments>
<autoVersionSubmodules>true</autoVersionSubmodules>
<tagNameFormat>@{project.version}</tagNameFormat>
<!-- Workaround for reformatted pom by release:prepare -->
<!-- https://issues.apache.org/jira/browse/MRELEASE-1111 -->
<preparationGoals>clean verify -Dspotless.goal=apply</preparationGoals>
<completionGoals>process-sources -Dspotless.goal=apply</completionGoals>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -606,7 +612,7 @@
<execution>
<id>spotless-check</id>
<goals>
<goal>check</goal>
<goal>${spotless.goal}</goal>
</goals>
<phase>process-sources</phase>
</execution>
Expand Down

0 comments on commit 08bbbb2

Please sign in to comment.