I'm new to Play! 2.x and sbt, and to add to the confusion, the documentation they have for dependencies is different from how they made sample projects in Activator. In particular, I am working with a template project hello-play.
There is no file Build.scala, but there is a file build.sbt. I am trying to add a SecureSocial module after the Installation document .
The file is build.sbtas follows:
name := """hello-play"""
version := "1.0-SNAPSHOT"
resolvers += "sbt-plugin-snapshots" at "http://repo.scala-sbt.org/scalasbt/sbt-plugin-snapshots"
libraryDependencies ++= Seq(
javaCore, // The core Java API
"org.webjars" %% "webjars-play" % "2.2.0",
"org.webjars" % "bootstrap" % "2.3.1",
"securesocial" %% "securesocial" % "2.1.2"
)
play.Project.playScalaSettings
At compile time, it shows that he was trying to use a recognizer that I gave, but no luck:
[warn] ==== sbt-plugin-snapshots: tried
[warn] http://repo.scala-sbt.org/scalasbt/sbt-plugin-snapshots/securesocial/securesocial_2.10/2.1.2/securesocial_2.10-2.1.2.pom
[info] Resolving org.fusesource.jansi
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: securesocial
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[trace] Stack trace suppressed: run last *:update for the full output.
[error] (*:update) sbt.ResolveException: unresolved dependency: securesocial
Am I doing something wrong? Not sure what else to try.