Playback Modes 2.2

In game 2.1 and earlier, I had to add resolvers to Build.scala , for example:

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

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

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

But this does not work, no dependencies found.

Any ideas?

+8
sbt deadbolt
source share
3 answers

You add it as a maven repository, but in your old configuration you say that these are plus repositories, I think it should be something like:

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

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

+12
source share

Update:

This solution does not work, I had dependencies in the cache.

I solved it like this:

Project /plugins.sbt

 // Comment to get more information during initialization logLevel := Level.Warn // The Typesafe repository resolvers ++= Seq( Resolver.url("Objectify Play Repository", url("http://schaloner.imtqy.com/releases/"))(Resolver.ivyStylePatterns), "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/" ) // Use the Play sbt plugin for Play projects addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.0") 

And then I can add the dependency to build.sbt :

 name := "test" version := "1.0-SNAPSHOT" libraryDependencies ++= Seq( javaJdbc, javaEbean, cache, "be.objectify" %% "deadbolt-java" % "2.2-RC1" ) play.Project.playJavaSettings 
+4
source share

For future reference, just add it to a new line at the end of build.sbt

Check out http://www.playframework.com/documentation/2.2.x/Build

 name := "my-app" version := "1.0-SNAPSHOT" libraryDependencies ++= Seq( ... ) play.Project.playJavaSettings resolvers += "itext repository" at "http://jasperreports.sourceforge.net/maven2/" 
0
source share

All Articles