Bob
Bob

Reputation: 8504

Cannot find sbt launcher 0.11.2

I have a Play 2.0 app that uses sbt 0.11.2. However when I set up a new Play server, it grabbed the latest version of sbt 0.11.3. Now when I run sbt compile on the new server, it complains

Detected sbt version 0.11.2
Cannot find sbt launcher 0.11.2
Please download: 
/sbt-launch.jartypesafe.artifactoryonline.com/typesafe/ivy-releases/org.scala-tools.sbt/sbt-launch/0.11.2
/sbt-launch.jarc2-user/.sbt/.lib/0.11.2

I tried downloading sbt-launch 0.11.2 and putting in the same folder as sbt but still get the same error. Incidentally, is there a difference between play compile vs. sbt compile because play compile works.

Upvotes: 4

Views: 3887

Answers (2)

Jeff Wu
Jeff Wu

Reputation: 2578

If you're compiling Play20 from source, after running the ./build command in ./Play20/framework, you'll be in the Play shell.

Run the command about and you can check what version of sbt is being run.

> about
[info] This is sbt 0.12.0
[info] The current project is {file:/home/jw/code/Play20/framework/}Root
[info] The current project is built against Scala 2.9.2
[info] Available Plugins: com.typesafe.tools.mima.plugin.MimaPlugin,        com.typesafe.sbtscalariform.ScalariformPlugin
[info] sbt, sbt plugins, and build definitions are using Scala 2.9.2

Then in your project directory, change the ./project/build.properties to the correct version.

Upvotes: 1

KajMagnus
KajMagnus

Reputation: 11686

Yes I think there is a difference between play compile and sbt compile, if your sbt script uses a different SBT version, in your case vertion 0.11.2 rather than Play's 0.11.3.

Perhaps you should start using SBT 0.11.3 instead?

I just upgraded to Play 2.1-SNAPSHOT (Git rev. f7de038a48, Fri May 25) which uses SBT 0.11.3, and I had to make this change in project/build.properties:

Change from: sbt.version=0.11.2
to: sbt.version=0.11.3

And I linked my SBT bash script to the one included with Play, i.e. 0.11.3 not 0.11.2.

Upvotes: 3

Related Questions