Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- set -e
- git fetch --tags > /dev/null
- latest_version=$(git tag -l --sort=v:refname | tail -n1)
- patch_version=$(cut -d. -f3 <<< "$latest_version")
- ((++patch_version))
- new_version=$(cut -d. -f-2 <<< "$latest_version").$patch_version
- new_version=$new_version-SNAPSHOT-$(git rev-parse --short HEAD)
- echo "Publishing version to local: $new_version"
- sbt -DLIB_VERSION=$new_version test publishLocal
Add Comment
Please, Sign In to add comment