Q:

Play Framework compile giving warnings, how to view them?

How do I see the warnings created during running compile on my Play app from the console?
[info] Done updating.
[info] Compiling 13 Scala sources and 2 Java sources to C:\...\target\scala-2.10\classes...
[warn] there were 1 feature warning(s); re-run with -feature for details
[warn] one warning found
[success] Total time: 13 s, completed 13-Feb-2014 00:43:23

I tried running clean then compile -feature but that just threw errors.
I'm using:
       _
 _ __ | | __ _ _  _
| '_ \| |/ _' | || |
|  __/|_|\____|\__ /
|_|            |__/

play 2.2.1 built with Scala 2.10.2 (running Java 1.7.0_51), http://www.playframework.com

A:

As a note, this is a little bit different from a standard warning (which will show up just fine by default).
There's a feature warning happening in the scala compiler; that's where that "there were 1 feature warning(s)" message comes from.
You need to pass -feature into scalac as part of scalacOptions which can be done by adding something like the following to your Build.scala:
val main = play.Project(appName, appVersion, appDependencies).settings(
  scalacOptions += "-feature"
)

