">

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?

asked Mar 23, 2014 by Eric Z Ma (44,280 points)

1 Answer

 
Best answer

You can use this inside the sbt console:

set scalacOptions += "-deprecation"
answered Mar 24, 2014 by Eric Z Ma (44,280 points)
edited Mar 25, 2014 by Eric Z Ma

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...