2024-01-19 23:00:22 +01:00
|
|
|
#!/bin/bash
|
2024-05-20 09:59:21 +02:00
|
|
|
version_file="version.txt"
|
2024-01-19 23:00:22 +01:00
|
|
|
|
2024-05-20 09:59:21 +02:00
|
|
|
# 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
|