rtimush / sbt-rewarn   0.1.3

BSD 3-clause "New" or "Revised" License GitHub

Make sbt always display compilation warnings, even for unchanged files.

Scala versions: 2.12
sbt plugins: 1.0


Always display compilation warnings, even for unchanged files.

By default, 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 ~/.sbt/1.0/plugins/plugins.sbt. If you want to enable this plugin for some specific project only, configure it in <project-root>/project/plugins.sbt.

Stable version

Add the following line to the plugins.sbt file:

addSbtPlugin("com.timushev.sbt" % "sbt-rewarn" % "x.x.x")

The latest version is Maven Central

No additional configuration is necessary, the plugin will be automatically activated.

Snapshot version

Choose one of versions available on Sonatype. Then add the following lines to the plugins.sbt file:

resolvers += Resolver.sonatypeRepo("snapshots")
addSbtPlugin("com.timushev.sbt" % "sbt-rewarn" % "x.x.x-y-zzzzzzz-SNAPSHOT")

Note, that snapshots are not updated automatically.