Scala -redis requires sbt 0.10.1 (other versions do not work) - is this normal?

Looking through the Scala bindings for Redis , I followed the instructions in the README file (cloned the repo, cd into it, type sbt ), and I got the following:

 $ sbt Getting org.scala-tools.sbt sbt_2.9.1 0.10.1 ... :: problems summary :: :::: WARNINGS module not found: org.scala-tools.sbt#sbt_2.9.1;0.10.1 ==== local: tried /Users/noah/.ivy2/local/org.scala-tools.sbt/sbt_2.9.1/0.10.1/ivys/ivy.xml -- artifact org.scala-tools.sbt#sbt_2.9.1;0.10.1!sbt_2.9.1.jar: /Users/noah/.ivy2/local/org.scala-tools.sbt/sbt_2.9.1/0.10.1/jars/sbt_2.9.1.jar ==== Maven2 Local: tried file:///Users/noah/.m2/repository/org/scala-tools/sbt/sbt_2.9.1/0.10.1/sbt_2.9.1-0.10.1.pom -- artifact org.scala-tools.sbt#sbt_2.9.1;0.10.1!sbt_2.9.1.jar: file:///Users/noah/.m2/repository/org/scala-tools/sbt/sbt_2.9.1/0.10.1/sbt_2.9.1-0.10.1.jar ==== typesafe-ivy-releases: tried http://repo.typesafe.com/typesafe/ivy-releases/org.scala-tools.sbt/sbt_2.9.1/0.10.1/ivys/ivy.xml -- artifact org.scala-tools.sbt#sbt_2.9.1;0.10.1!sbt_2.9.1.jar: http://repo.typesafe.com/typesafe/ivy-releases/org.scala-tools.sbt/sbt_2.9.1/0.10.1/jars/sbt_2.9.1.jar ==== Maven Central: tried http://repo1.maven.org/maven2/org/scala-tools/sbt/sbt_2.9.1/0.10.1/sbt_2.9.1-0.10.1.pom -- artifact org.scala-tools.sbt#sbt_2.9.1;0.10.1!sbt_2.9.1.jar: http://repo1.maven.org/maven2/org/scala-tools/sbt/sbt_2.9.1/0.10.1/sbt_2.9.1-0.10.1.jar ==== Scala-Tools Maven2 Repository: tried http://scala-tools.org/repo-releases/org/scala-tools/sbt/sbt_2.9.1/0.10.1/sbt_2.9.1-0.10.1.pom -- artifact org.scala-tools.sbt#sbt_2.9.1;0.10.1!sbt_2.9.1.jar: http://scala-tools.org/repo-releases/org/scala-tools/sbt/sbt_2.9.1/0.10.1/sbt_2.9.1-0.10.1.jar ==== Scala-Tools Maven2 Snapshots Repository: tried http://scala-tools.org/repo-snapshots/org/scala-tools/sbt/sbt_2.9.1/0.10.1/sbt_2.9.1-0.10.1.pom -- artifact org.scala-tools.sbt#sbt_2.9.1;0.10.1!sbt_2.9.1.jar: http://scala-tools.org/repo-snapshots/org/scala-tools/sbt/sbt_2.9.1/0.10.1/sbt_2.9.1-0.10.1.jar :::::::::::::::::::::::::::::::::::::::::::::: :: UNRESOLVED DEPENDENCIES :: :::::::::::::::::::::::::::::::::::::::::::::: :: org.scala-tools.sbt#sbt_2.9.1;0.10.1: not found :::::::::::::::::::::::::::::::::::::::::::::: :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS unresolved dependency: org.scala-tools.sbt#sbt_2.9.1;0.10.1: not found Error during sbt execution: Error retrieving required libraries (see /Users/noah/.sbt/boot/update.log for complete log) Error: Could not retrieve sbt 0.10.1 

This used sbt 0.7.4. I tried downloading the latest version of sbt (0.11.0) and I have the same problem. Then I manually downloaded sbt-launcher.jar from 0.10.1 sbt release and it worked.

My question is: should sbt automatically download the correct version of itself, or will I have to manually download and run different versions of sbt for packages that require different versions?

+6
source share
1 answer

The error message is not related to Redis.

Yes, SBT must download the appropriate version. You can find out which SBT versions are available by specifying a browser: http://repo.typesafe.com/typesafe/ivy-releases/org.scala-tools.sbt/ You will see that Scala 2.8.1 is bound to SBT versions <= 0.10.1, while Scala 2.9.1 (currently) is only compatible with SBT 0.11.0.

You get this error message because somehow you are trying to get SBT 0.10.1 for Scala 2.9.1, which is an invalid combination. Not sure how you did it. Perhaps you edited some internal SBT configuration files in the ~/.sbt/ ? If you want a virgin SBT, you can remove ~/.sbt/ and download the latest version of sbt-launch.jar . If you want to use the previous version of SBT, you can edit the project/build.properties file as described in the Wiki .

+5
source

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


All Articles