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:
parent
af3fb7f080
commit
57eec8ccaa
40
pom.xml
40
pom.xml
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue