当我编译Scala代码时,通过运行sbt compile,SBT说:
$ sbt compile
...
[warn] there were 5 deprecation warnings; re-run with -deprecation for details
...
Run Code Online (Sandbox Code Playgroud)
我怎么做?(从SBT内部?)
Eug*_*ota 216
如果你不想改变你的build.sbt:
$ sbt
> set scalacOptions in ThisBuild ++= Seq("-unchecked", "-deprecation")
> compile
> exit
Run Code Online (Sandbox Code Playgroud)
编辑:添加in ThisBuild和set评论.
San*_*hit 23
scalacOptions := Seq("-unchecked", "-deprecation")
Run Code Online (Sandbox Code Playgroud)
将此设置添加到build.sbt,如果您有多模块项目,请将其添加到每个项目的设置中.
| 归档时间: |
|
| 查看次数: |
28607 次 |
| 最近记录: |