File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 2
2
set -e
3
3
4
4
source $( dirname $0 ) /common.sh
5
+
6
+ set_revision () {
7
+ [[ -n $1 ]] || { echo " missing set_revision_to_pom() argument" >&2 ; return 1; }
8
+ grep -q " <revision>.*</revision>" pom.xml || { echo " missing revision tag" >&2 ; return 1; }
9
+ sed --in-place -e " s|<revision>.*</revision>|<revision>${1} </revision>|" pom.xml > /dev/null
10
+ }
11
+
5
12
repository=$( pwd) /distribution-repository
6
13
7
14
pushd git-repo > /dev/null
28
35
29
36
echo " Staging $stageVersion (next version will be $nextVersion )"
30
37
31
- set_revision_to_pom " $stageVersion "
38
+ set_revision " $stageVersion "
32
39
git config user.name " Spring Buildmaster" > /dev/null
33
40
git config user.email " buildmaster@springframework.org" > /dev/null
34
41
git add pom.xml > /dev/null
You can’t perform that action at this time.
0 commit comments