I'm trying to use the WS library in Play, but the import shown in all the tutorials I found doesn't work.
Has it changed somehow and the tutorials were not updated or is there something wrong with my setup?
I'm using: Scala 2.11 Play 2.5
This is in my build.sbt:
libraryDependencies ++= Seq(
ws
)
This is the import in the code:
import play.api.libs.ws._
And this is the error:
object ws is not a member of package play.api.libs
Note: I saw the WS library was made optional in version 2.4 according to: https://www.playframework.com/documentation/2.4.x/Migration23#Play-WS
I tried using this import: import play.api.Play.current
but I still get errors
Any ideas?
sbt run
– Gordon13