You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CURRENT_VERSION="`sed -n 's|.*<version>\(.*\)</version>.*|\1|p' pom.xml | awk '{ print $1; exit }'`"&&echo"Current version from pom.xml: $CURRENT_VERSION"
7
+
8
+
read -p "New version: " NEW_VERSION || die_with "Prompt for new version failed"
9
+
10
+
if!echo$NEW_VERSION| grep -i -- '-SNAPSHOT'>/dev/null;thenecho"WARNING: changing to a release version!";fi
11
+
12
+
echo"Updating the project version in build.gradle, pom.xml and README.md to $NEW_VERSION"
13
+
sed -ri "s/"`echo $CURRENT_VERSION| sed 's/\./\\\\./g'`"/$NEW_VERSION/g" build.gradle pom.xml README.md || die_with "Failed to update the project version!"
0 commit comments