How to set options for scala in sbt

In sbt, I found this message printed out by the scala compiler:

[warn] there were 1 deprecation warning(s); re-run with -deprecation for details
[warn] one warning found

The question is, how to add options (-deprecation here) to the scala compiler in sbt?

You can use this inside the sbt console:

set scalacOptions += "-deprecation"
Answered by Eric Z Ma.

Eric Z Ma

Eric is a father and systems guy. Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.

Leave a Reply

Your email address will not be published. Required fields are marked *