diff --git a/setVersion.sh b/setVersion.sh index 27b38e207..0803478fe 100755 --- a/setVersion.sh +++ b/setVersion.sh @@ -3,4 +3,13 @@ if [ "$#" != "1" ] ; then echo "ERROR: Version missing or wrong arguments!" exit 1 fi -mvn versions:set -DnewVersion="${1}" -DallowSnapshots=true -DgenerateBackupPoms=false + +if ! mvn -f pom.xml versions:set -DnewVersion="${1}" -DallowSnapshots=true -DgenerateBackupPoms=false ; then + echo "ERROR: Failed to change version in root!" + exit 1 +fi +if ! mvn -f versioning_eitchnet_pom.xml versions:set -DnewVersion="${1}" -DallowSnapshots=true -DgenerateBackupPoms=false ; then + echo "ERROR: Failed to change version in submodule!" + exit 1 +fi + diff --git a/versioning_eitchnet_pom.xml b/versioning_eitchnet_pom.xml new file mode 100644 index 000000000..0f2ed4767 --- /dev/null +++ b/versioning_eitchnet_pom.xml @@ -0,0 +1,29 @@ + + 4.0.0 + + + UTF-8 + yyyy-MM-dd HH:mm:ss + ${maven.build.timestamp} + + + ch.eitchnet + ch.eitchnet + 1.0.0-SNAPSHOT + ch.eitchnet + Module build for ch.eitchnet + pom + + + scm:git:https://github.com/eitchnet/strolch.git + scm:git:git@github.com:eitch/strolch.git + https://github.com/eitchnet/strolch + + + + ../ch.eitchnet.privilege + ../ch.eitchnet.utils + ../ch.eitchnet.xmlpers + ch.eitchnet.parent + +