File tree Expand file tree Collapse file tree 3 files changed +18
-2
lines changed
Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ run = "../../mvnw test -PnativeTest"
5959dir = " integration-tests/it-spring-boot-smoke-test"
6060
6161[tasks .set-version ]
62- run = ' mvn versions: set -DnewVersion= {{arg(name="version")}}'
62+ run = ' ./scripts/ set-version.sh {{arg(name="version")}}'
6363
6464[tasks .javadoc ]
6565run = [
Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ set -euo pipefail
44
55VERSION=${TAG# v}
66
7- mvn versions: set -DnewVersion= " $VERSION "
7+ ./scripts/ set-version.sh " $VERSION "
88mvn -B package -P ' release,!default' -Dmaven.test.skip=true
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -euo pipefail
4+
5+ VERSION=$1
6+
7+ if [ -z " $VERSION " ]; then
8+ echo " Usage: $0 <version>"
9+ exit 1
10+ fi
11+
12+ # replace all occurrences '<version>1.4.0-SNAPSHOT</version>' with '<version>$VERSION</version>'
13+ # in all pom.xml files in the current directory and subdirectories
14+
15+ find . -name ' pom.xml' -exec \
16+ sed -i " s/<version>1.4.0-SNAPSHOT<\/version>/<version>$VERSION <\/version>/g" {} +
You can’t perform that action at this time.
0 commit comments