Skip to content

Commit

Permalink
Set up the version on tag for maven
Browse files Browse the repository at this point in the history
  • Loading branch information
doradito committed Mar 21, 2018
1 parent db22bd7 commit 30e1d69
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
language: java
install: true
script:
- mvn install
- bash build.sh
env:
global:
- secure: g0A9usPhe/Tj0lnuCwUHgA88fsJ0eU1sgBCUUEUXDSE9wqyHs8ossEagRXOv3RFA+mULCXHuiSyD0CCkvfSfvL9zYzZO3XOcNiMy8GWZahUtYJph256bvw8D5/Y+HJTD8ppvPYjptKs6RyQSfQw796XIMUWHQQhUaKX6a2jho40=
Expand Down
7 changes: 7 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
set -e

if [ ! -z "${TRAVIS_TAG:-}" ]; then
mvn versions:set -DnewVersion="${TRAVIS_TAG#v}"
fi

mvn install

0 comments on commit 30e1d69

Please sign in to comment.