File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh -ex
2
2
3
- : ${1?" Usage: $0 <[pre]major|[pre]minor|[pre]patch|prerelease>" }
3
+ : " ${1?" Usage: $0 <[pre]major|[pre]minor|[pre]patch|prerelease>" } "
4
4
5
5
./mvnw scm:check-local-modification
6
6
7
- current=$( git describe --abbrev=0 || echo 0.0.0 )
8
- release=$( semver ${current} -i $1 --preid RC)
9
- next=$( semver ${release} -i minor)
7
+ current=$( { echo 0.0.0 ; git tag --list --sort=version:refname ; } | tail -n1 )
8
+ release=$( semver " ${current} " -i " $1 " --preid RC)
9
+ next=$( semver " ${release} " -i minor)
10
10
11
- git checkout -b release/${release}
11
+ git checkout -b " release/${release} "
12
12
13
- ./mvnw versions:set -D newVersion=${release}
13
+ ./mvnw versions:set -D newVersion=" ${release} "
14
14
git commit -am " Release ${release} "
15
- ./mvnw clean deploy scm:tag -P release -D tag=${release} -D pushChanges=false -D skipTests -D dependency-check.skip
15
+ ./mvnw clean deploy scm:tag -P release -D tag=" ${release} " -D pushChanges=false -D skipTests -D dependency-check.skip
16
16
17
- ./mvnw versions:set -D newVersion=${next} -SNAPSHOT
17
+ ./mvnw versions:set -D newVersion=" ${next} -SNAPSHOT"
18
18
git commit -am " Development ${next} -SNAPSHOT"
19
19
20
20
git push
21
21
git push --tags
22
22
23
23
git checkout main
24
- git branch -D release/${release}
24
+ git branch -D " release/${release} "
You can’t perform that action at this time.
0 commit comments