Skip to content

Instantly share code, notes, and snippets.

@phdoerfler
Created August 4, 2017 11:06
Show Gist options
  • Save phdoerfler/5ff19ae616cd7c034538abab46ad1c90 to your computer and use it in GitHub Desktop.
Save phdoerfler/5ff19ae616cd7c034538abab46ad1c90 to your computer and use it in GitHub Desktop.
Outputs the latest version of SBT
sbtlatest() {
curl -s "https://github.com/sbt/sbt/releases/latest" | perl -pe 's/^.*href="(.*)".*$/$1/' | perl -pe 's/^.*tag\/v(.*).*$/$1/'
}
@phdoerfler
Copy link
Author

Followed by:

echo "sbt.version = $(sbtlatest)" >> project/build.properties

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment