Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does sbt report "Error: Could not retrieve sbt 0.13.11"?

Tags:

scala

sbt

In a Scala project I updated the build.properties from 0.13.8 to 0.13.11. That "broke" sbt as it does not start anymore, i.e. it cannot download the 0.13.11 jars?! sbt prints a list of tried repo's, but the repo.typesafe.com was not one of them.

My local installed sbt is 0.13.8.

For some reason the scala-sbt jars are not available anymore in Typesafe's Bintray. Largest version there is 0.13.9.

I know the place to get it is https://repo.typesafe.com/typesafe/ivy-releases/, but how do I tell sbt to use this repo?

I have already tried:

  • adding a resolver to plugins.sbt
  • adding a resolver to build.sbt
  • adding the repo to .sbt/repositories

but I cannot get it working.

How to tell sbt where to get binaries?

like image 555
Joost den Boer Avatar asked Jan 06 '23 23:01

Joost den Boer


1 Answers

  1. Make sure that you're using sbt (launcher) that's at the same version of higher than the version used in your project.

    Execute sbt about in an empty directory and find [info] This is sbt X.Y.X.

  2. Make sure that you don't use ~/.sbt/repositories file that sets up the repositories used to resolve artifacts.

like image 69
Jacek Laskowski Avatar answered Jan 17 '23 00:01

Jacek Laskowski