diff --git a/update-version.sh b/update-version.sh index 24e340aa41a5c..a176880f67185 100755 --- a/update-version.sh +++ b/update-version.sh @@ -19,30 +19,30 @@ if [ -f integration-tests/gradle/gradle.properties ]; then sed -i -r "s/^version( ?= ?).*$/version\1${VERSION}/" integration-tests/gradle/gradle.properties fi -sed -i "s@999-SNAPSHOT@${VERSION}@" independent-projects/tools/pom.xml +sed -r -i "s@[^<]+@${VERSION}@" independent-projects/tools/pom.xml -sed -i "s@999-SNAPSHOT@${VERSION}@" extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/pom.xml -sed -i "s@999-SNAPSHOT@${VERSION}@" extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/pom.xml -sed -i "s@999-SNAPSHOT@${VERSION}@" extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/pom.xml +sed -r -i "s@[^<]+@${VERSION}@" extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/pom.xml +sed -r -i "s@[^<]+@${VERSION}@" extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/pom.xml +sed -r -i "s@[^<]+@${VERSION}@" extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/pom.xml -sed -i "s@999-SNAPSHOT@${VERSION}@" extensions/amazon-lambda/maven-archetype/src/main/resources/archetype-resources/pom.xml -sed -i "s@999-SNAPSHOT@${VERSION}@" extensions/amazon-lambda/maven-archetype/src/main/resources/archetype-resources/pom.xml -sed -i "s@999-SNAPSHOT@${VERSION}@" extensions/amazon-lambda/maven-archetype/src/main/resources/archetype-resources/pom.xml +sed -r -i "s@[^<]+@${VERSION}@" extensions/amazon-lambda/maven-archetype/src/main/resources/archetype-resources/pom.xml +sed -r -i "s@[^<]+@${VERSION}@" extensions/amazon-lambda/maven-archetype/src/main/resources/archetype-resources/pom.xml +sed -r -i "s@[^<]+@${VERSION}@" extensions/amazon-lambda/maven-archetype/src/main/resources/archetype-resources/pom.xml -sed -i "s@999-SNAPSHOT@${VERSION}@" extensions/amazon-lambda-http/maven-archetype/src/main/resources/archetype-resources/pom.xml -sed -i "s@999-SNAPSHOT@${VERSION}@" extensions/amazon-lambda-http/maven-archetype/src/main/resources/archetype-resources/pom.xml -sed -i "s@999-SNAPSHOT@${VERSION}@" extensions/amazon-lambda-http/maven-archetype/src/main/resources/archetype-resources/pom.xml +sed -r -i "s@[^<]+@${VERSION}@" extensions/amazon-lambda-http/maven-archetype/src/main/resources/archetype-resources/pom.xml +sed -r -i "s@[^<]+@${VERSION}@" extensions/amazon-lambda-http/maven-archetype/src/main/resources/archetype-resources/pom.xml +sed -r -i "s@[^<]+@${VERSION}@" extensions/amazon-lambda-http/maven-archetype/src/main/resources/archetype-resources/pom.xml if [ -f extensions/funqy/funqy-amazon-lambda/maven-archetype/src/main/resources/archetype-resources/pom.xml ]; then - sed -i "s@999-SNAPSHOT@${VERSION}@" extensions/funqy/funqy-amazon-lambda/maven-archetype/src/main/resources/archetype-resources/pom.xml - sed -i "s@999-SNAPSHOT@${VERSION}@" extensions/funqy/funqy-amazon-lambda/maven-archetype/src/main/resources/archetype-resources/pom.xml - sed -i "s@999-SNAPSHOT@${VERSION}@" extensions/funqy/funqy-amazon-lambda/maven-archetype/src/main/resources/archetype-resources/pom.xml + sed -r -i "s@[^<]+@${VERSION}@" extensions/funqy/funqy-amazon-lambda/maven-archetype/src/main/resources/archetype-resources/pom.xml + sed -r -i "s@[^<]+@${VERSION}@" extensions/funqy/funqy-amazon-lambda/maven-archetype/src/main/resources/archetype-resources/pom.xml + sed -r -i "s@[^<]+@${VERSION}@" extensions/funqy/funqy-amazon-lambda/maven-archetype/src/main/resources/archetype-resources/pom.xml fi if [ -f extensions/amazon-lambda-rest/maven-archetype/src/main/resources/archetype-resources/pom.xml ]; then - sed -i "s@999-SNAPSHOT@${VERSION}@" extensions/amazon-lambda-rest/maven-archetype/src/main/resources/archetype-resources/pom.xml - sed -i "s@999-SNAPSHOT@${VERSION}@" extensions/amazon-lambda-rest/maven-archetype/src/main/resources/archetype-resources/pom.xml - sed -i "s@999-SNAPSHOT@${VERSION}@" extensions/amazon-lambda-rest/maven-archetype/src/main/resources/archetype-resources/pom.xml + sed -r -i "s@[^<]+@${VERSION}@" extensions/amazon-lambda-rest/maven-archetype/src/main/resources/archetype-resources/pom.xml + sed -r -i "s@[^<]+@${VERSION}@" extensions/amazon-lambda-rest/maven-archetype/src/main/resources/archetype-resources/pom.xml + sed -r -i "s@[^<]+@${VERSION}@" extensions/amazon-lambda-rest/maven-archetype/src/main/resources/archetype-resources/pom.xml fi if [ -f coverage-report/pom.xml ]; then - sed -i "s@999-SNAPSHOT@${VERSION}@" coverage-report/pom.xml + sed -r -i "s@^ [^<]+@ ${VERSION}@" coverage-report/pom.xml fi