Guest User

Untitled

a guest
Mar 21st, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. set -e
  4.  
  5. git fetch --tags > /dev/null
  6. latest_version=$(git tag -l --sort=v:refname | tail -n1)
  7. patch_version=$(cut -d. -f3 <<< "$latest_version")
  8. ((++patch_version))
  9. new_version=$(cut -d. -f-2 <<< "$latest_version").$patch_version
  10. new_version=$new_version-SNAPSHOT-$(git rev-parse --short HEAD)
  11. echo "Publishing version to local: $new_version"
  12.  
  13. sbt -DLIB_VERSION=$new_version test publishLocal
Add Comment
Please, Sign In to add comment