Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot resolve sbt interface from "org.scala-sbt" #284

Closed
felixmulder opened this issue Jun 21, 2016 · 4 comments
Closed

Cannot resolve sbt interface from "org.scala-sbt" #284

felixmulder opened this issue Jun 21, 2016 · 4 comments

Comments

@felixmulder
Copy link

In our build file coursier cannot resolve the sbt interface from org.scala-sbt, but it can from com.typesafe.sbt.

// ...
"org.scala-sbt" % "interface" % "0.13.11" // doesn't work
"com.typesafe.sbt" % "sbt-interface" % "0.13.11" // works

For us it should make little difference using one or the other, but thought I'd report it anyway.

Let me know what logs etc I should dig up.

@alexarchambault
Copy link
Member

alexarchambault commented Jul 3, 2016

I guess that originates from the latter being available on Central, where as the former is only available from the Typesafe ivy-releases repo. Do you have more context? Does the problem only happen with sbt-coursier?

@felixmulder
Copy link
Author

felixmulder commented Jul 4, 2016

The problem only occurs with sbt-coursier. This is the build file: https://github.com/lampepfl/dotty/blob/master/project/Build.scala. Since we're using:

resolvers += Resolver.typesafeIvyRepo("releases")

I figured this would allow coursier to resolve it from the ivy releases.

@alexarchambault
Copy link
Member

alexarchambault commented Jul 4, 2016

It seems that you're running into this point of the FAQ. With the default SBT resolution, one can add the necessary resolvers to one single project as you did, and let it fill the cache for the subsequent projects. On the other hand, coursier doesn't mix the caches of the various repositories. The resolvers have to be added to all the projects that need artifacts from them.

So here, the dotty project and the projects that depend on it need the typesafe ivy repo too. It works by enforcing that like shown here: alexarchambault/dotty@86111cf.

@felixmulder
Copy link
Author

Great, thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants