2024-01-19 22:52:24 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-05-12 11:58:04 +02:00
|
|
|
version_file="../version.txt"
|
|
|
|
|
|
|
|
# update new release dependency
|
2024-01-19 22:52:24 +01:00
|
|
|
cd back
|
2024-05-12 11:58:04 +02:00
|
|
|
# update the Maven version number
|
2024-06-10 23:29:03 +02:00
|
|
|
mvn versions:set -DnewVersion=$(sed 's/dev/SNAPSHOT/g' $version_file)
|
2024-05-12 11:58:04 +02:00
|
|
|
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
|
2024-01-19 22:52:24 +01:00
|
|
|
cd -
|
|
|
|
|
|
|
|
|
2024-05-12 11:58:04 +02:00
|
|
|
cd front
|
2024-06-10 23:29:03 +02:00
|
|
|
if grep -q "dev" "$version_file"; then
|
2024-05-12 11:58:04 +02:00
|
|
|
# update all dependency
|
|
|
|
pnpm install
|
|
|
|
pnpm run update_packages
|
|
|
|
else
|
|
|
|
# in case of release ==> can not do it automatically ...
|
2024-06-10 23:29:03 +02:00
|
|
|
echo not implemented
|
2024-05-12 11:58:04 +02:00
|
|
|
fi
|
2024-06-10 23:29:03 +02:00
|
|
|
|
2024-05-12 11:58:04 +02:00
|
|
|
cd -
|
2024-06-10 23:29:03 +02:00
|
|
|
|