4
votes

I use sbt 0.13.1 (myProject/project/build.properties/ has sbt.version=0.13.1)

In my myProject/project/play.sbt

resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases"

addSbtPlugin("play" % "sbt-plugin" % "2.2.1")

I tried many versions, but whatever I do, It can not resolve that dependency. I end up with error like this:

[error] (*:update) sbt.ResolveException: unresolved dependency: play#sbt-plugin;2.2.1: not found

I even try to put scalaVersion := "2.9.1" to play.sbt to be consistent with repositories (in case if does matter):

/typesafe/releases/play/sbt-plugin/scala_2.9.1/sbt_0.11.3/

But it does not work.

Eh.?

3

3 Answers

5
votes

Set project/plugin.sbt:

addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.1")

Also the correct version of sbt in build.properties:

sbt.version=0.13.0

Full migration guide to play 2.2

0
votes

Starting with Play 2.2.0 the group id is now com.typesafe.play so the following should work:

resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases"

addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.1")
0
votes

"If you're running on [...] anything that can run a Bash script, I highly recommend the launch script from sbt-extras." (dave at stackoverflow question 8721338). It helped me, too.