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
The activator command can be used to create a new Play application. Activator allows you to select a template that your new application should be based off. For vanilla Play projects, the names of these templates are play-scala for Scala based Play applications, and play-java for Java based Play applications.
Play comes with two configurable server backends, which handle the low level work of processing HTTP requests and responses to and from TCP/IP packets. Starting in 2.6. x, the default server backend is the Akka HTTP server backend, based on the Akka-HTTP server. Prior to 2.6.
-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"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With