Always display compilation warnings, even for unchanged files.
sbt shows compilation warnings only for the source files that have been re-compiled in the current incremental compilation run.
sbt-rewarn makes it print all warnings on every compilation, even if you didn't change anything.
This is particularly helpful if you want to keep your project warning-free. Simply enabling
-Xfatal-warnings can be too annoying during development, especially the
-Wunused:* family of warnings. The better alternative is to make warnings fatal on CI but not locally. Together with this plugin, you will always see if you have introduced any warnings, regardless of the incremental compilation.
sbt 1.0.0 or later, with an exception of sbt 1.4.0 (sbt 1.4.1+ is supported again).
The plugin supports both global and per-project installation.
If you want this plugin to be available for all
sbt projects you work with, configure it in
If you want to enable this plugin for some specific project only, configure it in
Add the following line to the
addSbtPlugin("com.timushev.sbt" % "sbt-rewarn" % "x.x.x")
No additional configuration is necessary, the plugin will be automatically activated.
Choose one of versions available on Sonatype. Then add the following lines to the
resolvers += Resolver.sonatypeRepo("snapshots") addSbtPlugin("com.timushev.sbt" % "sbt-rewarn" % "x.x.x-y-zzzzzzz-SNAPSHOT")
Note, that snapshots are not updated automatically.