Cannot find sbt launcher 0.11.2

I have a Play 2.0 application that uses sbt 0.11.2 . However, when I set up the new Play server, it grabbed the latest version of sbt 0.11.3 . Now when I run sbt compile on a 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 to download sbt-launch 0.11.2 and paste it into the same folder as sbt , but still get the same error. By the way, is there a difference between play compile vs. sbt compile because play compile works.

+4
source share
2 answers

Yes, I think there is a difference between play compile and sbt compile if your sbt script uses a different version of SBT, in your case server 0.11.2 instead of Play 0.11.3.

Perhaps you should use SBT 0.11.3 instead?

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

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

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

+3
source

If you compile the Play20 from a source, after running the ./build in ./Play20/framework you will be ./Play20/framework to the playback shell.

Run the about command and you can check which version of sbt is running.

 > 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 the project directory, change ./project/build.properties to the correct version.

+1
source

Source: https://habr.com/ru/post/917843/


All Articles