当前位置: 动力学知识库 > 问答 > 编程问答 >

scala - How to run Play Framework 2.2.0 with -feature option

问题描述:

Seeing this in my console after running play -> run:

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

[warn] one warning found

Where is this enabled? Would like to see what the warning is, but running play -feature or run -feature doesn't seem to do the trick.

I'm running Play Framework 2.2.0-scala

网友答案:

-feature is a compiler option - it must be passed to scalac.

To pass arguments to scalac in play or in any sbt build for that mattern you use the scalacOptions setting.

So add this in your build.sbt:

scalacOptions += "-feature"
分享给朋友:
您可能感兴趣的文章:
随机阅读: