scala 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
?
现在的问题是,如何添加选项( -deprecation
这里)在Scala编译器sbt
?
You can use this inside the sbt
console:
您可以在sbt
控制台中使用它:
set scalacOptions += "-deprecation"
Answered by Eric Z Ma.
埃里克·马(Eric Z Ma)回答。
翻译自: https://www.systutorials.com/how-to-set-options-for-scala-in-sbt/
scala sbt