How to skip tests in all phases of sbt builds (or maybe just in publish)

Viewed 2900

A typical answer about how to skip tests in sbt would be:

 sbt "set test in assembly := {}"

However when I run for example

sbt publishLocal

Then that approach does not work. Is there a global "disable" tests flag like

maven -Dmaven.skip.test=True

Or if not .. what would be the way to disable tests just for publishLocal ?

1 Answers
Related