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}" />
+
+
+
+