Add helper to set version
This commit is contained in:
parent
d86bf66645
commit
3600533fad
|
@ -0,0 +1,18 @@
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-build-all</artifactId>
|
||||||
|
<version>0.5.0.BUILD-SNAPSHOT</version>
|
||||||
|
<packaging>pom</packaging>
|
||||||
|
<prerequisites>
|
||||||
|
<maven>3.0.0</maven>
|
||||||
|
</prerequisites>
|
||||||
|
<properties>
|
||||||
|
<main.basedir>${basedir}/../..</main.basedir>
|
||||||
|
</properties>
|
||||||
|
<modules>
|
||||||
|
<module>../..</module>
|
||||||
|
<module>../../spring-boot-samples</module>
|
||||||
|
</modules>
|
||||||
|
</project>
|
|
@ -0,0 +1,14 @@
|
||||||
|
if [ -z "$1" ]; then
|
||||||
|
echo "Specify the new version"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
cd ../../spring-boot-dependencies
|
||||||
|
mvn versions:set -DgenerateBackupPoms=false -DnewVersion=$1
|
||||||
|
cd ..
|
||||||
|
mvn versions:set -DgenerateBackupPoms=false -DnewVersion=$1
|
||||||
|
cd buildhelper/all
|
||||||
|
mvn versions:set -DgenerateBackupPoms=false -DnewVersion=$1
|
||||||
|
mvn -N versions:update-child-modules -DgenerateBackupPoms=false
|
||||||
|
cd ../../spring-boot-starters
|
||||||
|
mvn -N validate
|
||||||
|
cd ../buildhelper/all
|
Loading…
Reference in New Issue