Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 528
randombits Avatar asked Oct 15 '13 22:10

randombits


People also ask

What is activator in play framework?

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.

Is Play framework backend?

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.


1 Answers

-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"
like image 190
Marius Danila Avatar answered Oct 29 '22 20:10

Marius Danila