Update boot version in other build samples

Add replace goals to update the Spring Boot version in the gradle and
ant samples during the release process.

Fixes gh-425
This commit is contained in:
Phillip Webb 2014-05-10 23:17:38 +01:00
parent af3fb7f080
commit 57eec8ccaa
1 changed files with 40 additions and 0 deletions

40
pom.xml
View File

@ -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>
@ -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>