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?)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
sbt shell
While in sbt shell (if you don’t want to change your
build.sbt):Due to
in ThisBuild,setapplies 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/scalacOptionsusescalacOptions in ThisBuild