Sbt for continuous integration: print stacktrace and exit on error
sbt will not enable interactive mode if input stream will be "closed" with (such a hacky) trick:
cat /dev/null | sbt taskname
or if you are not able to use pipes create a shell script like this:
#!/bin/sh
sbt "$@" < /dev/null