diff --git a/.island/release.bash b/.island/release.bash index 3de4179..0e9709f 100755 --- a/.island/release.bash +++ b/.island/release.bash @@ -1,4 +1,14 @@ #!/bin/bash +version_file="version.txt" -mvn versions:set -DnewVersion=$(cat version.txt) - +# update the Maven version number +mvn versions:set -DnewVersion=$(sed 's/dev/SNAPSHOT/g' $version_file) +if grep -q "DEV" "$version_file"; then + # update all versions release of dependency + mvn versions:use-latest-releases + # update our manage dependency as snapshoot + mvn versions:use-latest-versions -Dincludes=kangaroo-and-rabbit +else + # update our manage dependency as release (must be done before) + mvn versions:use-latest-releases -Dincludes=kangaroo-and-rabbit +fi diff --git a/pom.xml b/pom.xml index b4a2408..797ea75 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 kangaroo-and-rabbit archidata - 0.8.10 + 0.8.11-SNAPSHOT 3.1 21 diff --git a/version.txt b/version.txt index ef50561..54d65da 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.8.10 +0.8.11-dev