Skip to content

Commit

Permalink
spring-projectsGH-480: Bring back POM revision property
Browse files Browse the repository at this point in the history
Fixes: spring-projects#480

* Add `flatten-maven-plugin` to resolve properties
and remove unnecessary build info from the final POM of the artifact to install/deploy
  • Loading branch information
artembilan committed Dec 18, 2024
1 parent 72a0d0e commit 459114c
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.springframework.retry</groupId>
<artifactId>spring-retry</artifactId>
<version>2.0.12-SNAPSHOT</version>
<version>${revision}</version>
<name>Spring Retry</name>
<description><![CDATA[
Spring Retry provides an abstraction around retrying failed operations, with an
Expand All @@ -26,6 +26,7 @@
</license>
</licenses>
<properties>
<revision>2.0.12-SNAPSHOT</revision>
<disable.checks>false</disable.checks>
<java.version>17</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down Expand Up @@ -302,6 +303,31 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.6.0</version>
<configuration>
<outputDirectory>${project.build.directory}</outputDirectory>
<flattenMode>oss</flattenMode>
</configuration>
<executions>
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
<execution>
<id>flatten.clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit 459114c

Please # to comment.