Search code examples
playframework-2.0sbtdeadbolt

Playframework 2.2 resolvers


In play 2.1 and prior I had to add the resolvers in Build.scala like:

val main = play.Project(appName, appVersion, appDependencies).settings(
    resolvers += Resolver.url("Objectify Play Repository", url("http://schaloner.github.io/releases/"))(Resolver.ivyStylePatterns),
    resolvers += Resolver.url("Objectify Play Snapshot Repository", url("http://schaloner.github.io/snapshots/"))(Resolver.ivyStylePatterns)
  )

In 2.2 I have to put it in build.sbt like:

...
resolvers += "Objectify Play Snapshot Repository" at "http://schaloner.github.com/snapshots/"
...

But that does not seem to work, dependencies are not found.

Any Ideas?


Solution

  • You are adding it as a maven repository but in your old config you are saying that it is ivy repositories, I think it should be something like:

    resolvers += Resolver.url("Repo-name", url("http://example.com/"))(Resolver.ivyStylePatterns)
    

    Checkout the sbt 0.13 (which play 2.2 uses) docs on resolvers for more info: http://www.scala-sbt.org/release/docs/Detailed-Topics/Resolvers.html