I'm trying to upgrade an app from play 2.0.4 to play 2.1
I got this warning
WARNING
Looks like you are using a deprecated version of Play's SBT Project (PlayProject in project/Build.scala).
We are adding all of the new Play artifacts to your libraryDependencies for now but consider switching to the new API (i.e. play.Project).
For any migration related issues, please consult the migration manual at http://www.playframework.org
So I changed this line in my Build.scala
from
import PlayProject._
to
import play.Project._
then I issued play clean-all, play clean, but the message is still there
--
an changed it to
import scala.concurrent.duration._
then I had
Akka.system.scheduler.schedule(4 hours...
And changed it to
import context.dispatcher
context.system.scheduler.schedule(4 hours...
but context is not found... How can I get the context for play's actor?
--
then I had a couple of minor issues with
value await is not a member of scala.concurrent.Future[play.api.libs.ws.Response]
[error] get().await.get.body
So I had to replace
val response = WS.url(uri).get().await.get.body
with
val future = WS.url(uri).get()
import scala.concurrent.Await
import scala.concurrent.duration._
val response = Await.result(future, 5 seconds).body
and then
object codahale is not a member of package com
[error] com.codahale.jerkson.Json.generate(any)
I had to manually add it to Build.scala
"io.backchat.jerkson" % "jerkson_2.9.2" % "0.7.0"
--
I still couldn't solve the problem with the akka context
Any help will we much appreciated
is the play 2.1 scaladoc available somewhere online?
saludos
sas