Is there a way in sbt to convert compiler warnings to errors so the build fails?
sbt, scala
Solution
You can pass options from sbt to the scala compiler, including the one that turns warnings into errors.
I usually add these:
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature", "-Xfatal-warnings"),
Problem
I want to "ban" some or all compiler warnings.