From 45eb56a6fef712d87f75878acebb064e49095ce2 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Sun, 12 May 2024 11:57:08 +0200 Subject: [PATCH] [DEV] update relase for island --- .island/release.bash | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.island/release.bash b/.island/release.bash index 85458dc..d9e1927 100755 --- a/.island/release.bash +++ b/.island/release.bash @@ -1,7 +1,29 @@ #!/bin/bash +version_file="../version.txt" + +# update new release dependency cd back -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 cd - +cd front +if grep -q "DEV" "$version_file"; then + # update all dependency + pnpm install + pnpm run update_packages +else + # in case of release ==> can not do it automatically ... +fi +cd -