简体   繁体   中英

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"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM