Skip to content

Commit

Permalink
Update boot version in other build samples
Browse files Browse the repository at this point in the history
Add replace goals to update the Spring Boot version in the gradle and
ant samples during the release process.

Fixes spring-projectsgh-425
  • Loading branch information
Phillip Webb committed May 10, 2014
1 parent af3fb7f commit 57eec8c
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>2.17</version>
</plugin>
<plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
<version>1.5.3</version>
</plugin>

</plugins>
</pluginManagement>
</build>
Expand Down Expand Up @@ -204,6 +210,40 @@
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
<executions>
<execution>
<id>fixup-gradle-samples</id>
<phase>verify</phase>
<goals>
<goal>replace</goal>
</goals>
<configuration>
<includes>
<include>${basedir}/spring-boot-samples/**/build.gradle</include>
</includes>
<token>springBootVersion\s+.*+</token>
<value>springBootVersion = '${project.version}'</value>
</configuration>
</execution>
<execution>
<id>fixup-ant-samples</id>
<phase>verify</phase>
<goals>
<goal>replace</goal>
</goals>
<configuration>
<includes>
<include>${basedir}/spring-boot-samples/**/build.xml</include>
</includes>
<token>spring-boot\.version\"\s.*+</token>
<value>spring-boot.version" value="${project.version}" /></value>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
Expand Down

0 comments on commit 57eec8c

Please sign in to comment.