When I compile Scala code, by running sbt compile
, SBT says:
$ sbt compile
...
[warn] there were 5 deprecation warnings; re-run with -deprecation for details
...
How do I do that? (From within SBT?)
sbt
When I compile Scala code, by running sbt compile
, SBT says:
$ sbt compile
...
[warn] there were 5 deprecation warnings; re-run with -deprecation for details
...
How do I do that? (From within SBT?)
Best Answer
sbt shell
While in sbt shell (if you don't want to change your
build.sbt
):Due to
in ThisBuild
,set
applies the settings to all sub-projects, as well.Command Line
You could also run the above as a single command on command line.
The trick is to use
;
(semicolons) to separate commands and'
(ticks) to include all;
-separated commands as a single argument to sbt.sbt < 1.x
Instead of
ThisBuild/scalacOptions
usescalacOptions in ThisBuild