Skip to content

Commit dce671b

Browse files
authored
fix: use maven release plugin in update-version.sh travis script (ExpediaGroup#273)
versions-maven-plugin is unable to automatically increment snapshot versions of non-standard version project (e.g. 1.0.0-RC1-SNAPSHOT).
1 parent e2121a5 commit dce671b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis/update-version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ update_version() {
1212
mvn --settings .travis/settings.xml org.codehaus.mojo:versions-maven-plugin:2.7:set -DnewVersion="${TRAVIS_TAG}-SNAPSHOT"
1313

1414
# Increment the patch version
15-
mvn --settings .travis/settings.xml org.codehaus.mojo:versions-maven-plugin:2.7:set -DnextSnapshot=true
15+
mvn --settings .travis/settings.xml release:update-versions -B
1616

1717
# Pull the value from the pom
1818
NEW_VERSION=$(mvn --settings .travis/settings.xml help:evaluate -Dexpression=project.version -q -DforceStdout)

0 commit comments

Comments
 (0)