From 6b13ff470c80a8beb1221b68c38006f19336c58d Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Wed, 13 Mar 2024 16:38:21 +0100 Subject: [PATCH] Fix update-version.sh script --- update-version.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/update-version.sh b/update-version.sh index c09620cadbae3..564ab2ef20226 100755 --- a/update-version.sh +++ b/update-version.sh @@ -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}@" 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