Improving sbt command scripts with jvm and java options and conditional
(on success) compile, test and publish steps.