Skip to content

Commit 30e1d69

Browse files
committed
Set up the version on tag for maven
1 parent db22bd7 commit 30e1d69

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Diff for: .travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
language: java
2+
install: true
23
script:
3-
- mvn install
4+
- bash build.sh
45
env:
56
global:
67
- secure: g0A9usPhe/Tj0lnuCwUHgA88fsJ0eU1sgBCUUEUXDSE9wqyHs8ossEagRXOv3RFA+mULCXHuiSyD0CCkvfSfvL9zYzZO3XOcNiMy8GWZahUtYJph256bvw8D5/Y+HJTD8ppvPYjptKs6RyQSfQw796XIMUWHQQhUaKX6a2jho40=

Diff for: build.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
set -e
2+
3+
if [ ! -z "${TRAVIS_TAG:-}" ]; then
4+
mvn versions:set -DnewVersion="${TRAVIS_TAG#v}"
5+
fi
6+
7+
mvn install

0 commit comments

Comments
 (0)