mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-12-24 16:00:09 -06:00
13 lines
524 B
Plaintext
13 lines
524 B
Plaintext
|
#!/bin/bash
|
||
|
cd mvn-defaults
|
||
|
set -x
|
||
|
CURRENT_VERSION=$(mvn help:evaluate -Dexpression=revision -q -DforceStdout)
|
||
|
RELEASE_VERSION=${CURRENT_VERSION%%-SNAPSHOT}
|
||
|
BASE_VERSION=$(echo "$RELEASE_VERSION" | cut -d'.' -f1-2)
|
||
|
MINOR_VERSION=$(echo "$RELEASE_VERSION" | cut -d'.' -f3)
|
||
|
NEXT_MINOR_VERSION=$(( $MINOR_VERSION + 1 ))
|
||
|
NEXT_SNAPSHOT="${BASE_VERSION}.${NEXT_MINOR_VERSION}-SNAPSHOT"
|
||
|
printf "next-snapshot: %s\n" "${NEXT_SNAPSHOT}"
|
||
|
mvn versions:set-property -DallowSnapshots -DnewVersion="${NEXT_SNAPSHOT}" -Dproperty=revision
|
||
|
|