I have this piece of code:
object Application {
def main(args: Array[String]) {
import scala.concurrent.ExecutionContext.Implicits.global
val ws = new NingWSClient(new AsyncHttpClientConfig.Builder().build())
ws.url("https://www.google.com").get() onSuccess {
case resp: WSResponse => {
println("Hello");
}
case _ => {
println("Error");
}
}
}
}
Each dependency is well defined internally build.sbtas follows:
name := "example"
version := "1.0"
scalaVersion := "2.11.4"
libraryDependencies ++= Seq(
"com.typesafe.play" %% "play-ws" % "2.4.0-M2",
"com.typesafe.play" %% "play-json" % "2.4.0-M2"
)
But Intellij looks like this when viewing my project:

Can someone tell me what I am doing wrong because I am clueless and it is really annoying because my import is permanently deleted by Intellij.
source
share