Have sbt fail when project loading fails (rather than awaiting user input)?

continuous-integration, sbt

Solution

Invoke SBT with the `-batch` option. It will still print the prompt but not actually wait for a reply, instead it will exit with a non-0 status.

Problem

I'm configuring our CI infrastructure and when project loading fails sbt asks what to do: ``` Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? ``` This hangs the build which waits for process to return. Is there a way to tell sbt to stop without asking what to do when loading fails?

Original source

Related problems