Fix update-version.sh script

This commit is contained in:
Guillaume Smet 2024-03-13 16:38:21 +01:00
parent f82cb64df3
commit 6b13ff470c
No known key found for this signature in database
GPG Key ID: C2AD9C8A7D4E988A
1 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,11 @@ VERSION=$1
./mvnw -e -B -Dscan=false -Dgradle.cache.local.enabled=false versions:set -Dtcks -DnewVersion="${VERSION}" -DgenerateBackupPoms=false -DprocessAllModules -Prelocations -DupdateBuildOutputTimestampPolicy=always
if [ -f independent-projects/enforcer-rules/src/it/smoketest/pom.xml ]; then
# update the parent version only using indentation
sed -i -r "s@ <version>[^<]+</version>@ <version>${VERSION}</version>@" independent-projects/enforcer-rules/src/it/smoketest/pom.xml
fi
if [ -f devtools/gradle/gradle.properties ]; then
sed -i -r "s/^version( ?= ?).*$/version\1${VERSION}/" devtools/gradle/gradle.properties
fi