From 60fdecfe056dfcad0a29d621de26972dd1c0bc8e Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Sun, 12 May 2024 08:54:31 +0200 Subject: [PATCH] [DEPENDENCY] update libraries --- .island/release.bash | 27 ++++++++++++++++++++++++++- back/pom.xml | 12 ++++++------ 2 files changed, 32 insertions(+), 7 deletions(-) diff --git a/.island/release.bash b/.island/release.bash index 85458dc..00d16da 100755 --- a/.island/release.bash +++ b/.island/release.bash @@ -1,7 +1,32 @@ #!/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 ... + echo not implemented +fi + +cd - + diff --git a/back/pom.xml b/back/pom.xml index 9ca47c1..18aac54 100644 --- a/back/pom.xml +++ b/back/pom.xml @@ -3,7 +3,7 @@ 4.0.0 org.kar karso - 0.5.0 + 0.5.0-SNAPSHOT 3.1 21 @@ -20,17 +20,17 @@ kangaroo-and-rabbit archidata - 0.8.6 + 0.8.7 org.slf4j slf4j-simple - 2.0.9 + 2.1.0-alpha1 com.fasterxml.jackson.datatype jackson-datatype-jsr310 - 2.16.1 + 2.17.1