solution: sbt compile/run - 'deprecation warnings; re-run with -deprecation for details' message

I got a "deprecation warnings; re-run with -deprecation for details" message from SBT when trying to compile or run my project code. How do I add -deprecation to see the deprecation warnings?

Add this entry to your SBT build.sbt file:

scalacOptions += "-deprecation"

For example, a complete build.sbt file might look like this:

name := "Test 1"

version := "1.0"

scalaVersion := "2.9.1"

resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/"

libraryDependencies += "com.typesafe.akka" % "akka-actor" % "2.0.2"

scalacOptions += "-deprecation"