scala-weather
scala-weather copied to clipboard
Create a custom SBT task to print the version
would remove the need for this:
https://github.com/snowplow/scala-weather/blob/bfc3e3be447dbe0df9d167d402f8957f5bb34536/.travis/deploy.sh#L17
What is the problem with the line? If you want to get rid of perl you could use
sbt -no-colors 'inspect actual version' | grep Setting | cut -d '=' -f2
I think I remember seeing a custom sbt task in another project that would just do this and that would let us do something like:
project_version=$(sbt myPrintVersion)
You have to wait for the next sbt release then. They will introduce print
which prints to stdout instead of using the logger (which you have to parse)
See https://github.com/sbt/sbt/pull/4341
Then you should be able to do sbt --error 'print version'
.
Thanks, useful info :+1: