From 57eec8ccaa4d69ac9bb53e895abbc6e48c3b6a92 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Sat, 10 May 2014 23:17:38 +0100 Subject: [PATCH] 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 --- pom.xml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/pom.xml b/pom.xml index d7acc54411..ee8bd62231 100644 --- a/pom.xml +++ b/pom.xml @@ -62,6 +62,12 @@ maven-surefire-plugin 2.17 + + com.google.code.maven-replacer-plugin + replacer + 1.5.3 + + @@ -204,6 +210,40 @@ true + + com.google.code.maven-replacer-plugin + replacer + + + fixup-gradle-samples + verify + + replace + + + + ${basedir}/spring-boot-samples/**/build.gradle + + springBootVersion\s+.*+ + springBootVersion = '${project.version}' + + + + fixup-ant-samples + verify + + replace + + + + ${basedir}/spring-boot-samples/**/build.xml + + spring-boot\.version\"\s.*+ + spring-boot.version" value="${project.version}" /> + + + +