Skip to content

Commit

Permalink
Merge pull request #39407 from gsmet/fix-update-version
Browse files Browse the repository at this point in the history
Fix update-version.sh script
  • Loading branch information
gsmet authored Mar 15, 2024
2 parents a387b7b + 6b13ff4 commit ffeea8f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions update-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ffeea8f

Please sign in to comment.