question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

coursier-shared depends on org.scala-sbt %% sbt

See original GitHub issue

As I was integrating coursier with sbt-librarymanagement, I noticed that coursier-shared depends on org.scala-sbt %% sbt, so the entirety of sbt.

This creates circular dependency as the dependency chain is:

sbt -> librarymanagement -> librarymanagement-coursier -> coursier-shared -> sbt ...

This creates (I think) a weird compilation issue: https://github.com/sbt/librarymanagement/pull/190#issuecomment-358897786

I believe a dependency on librarymanagement would be enough, however I’m unsure where exactly it is defined. Does it come from the recently added sbt-compat?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
leonardehrenfriedcommented, Mar 16, 2018

The 1.1.0-M1 release can now be compiled with sbt/librarymanagement.

Thanks @alexarchambault!

2reactions
leonardehrenfriedcommented, Feb 9, 2018

I’ve successfully built sbt/librarymangement with 1.0.2 and I’m nearly there.

I missed a single sbt._ import it seems, which leads to a runtime error:

[error] java.lang.NoClassDefFoundError: sbt/package$
[error] 	at coursier.ToSbt$.$anonfun$updateReport$1(ToSbt.scala:253)
[error] 	at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:234)
[error] 	at scala.collection.MapLike$MappedValues.$anonfun$foreach$3(MapLike.scala:253)
[error] 	at scala.collection.TraversableLike$WithFilter.$anonfun$foreach$1(TraversableLike.scala:789)
[error] 	at scala.collection.immutable.HashMap$HashMap1.foreach(HashMap.scala:231)
[error] 	at scala.collection.immutable.HashMap$HashTrieMap.foreach(HashMap.scala:462)
[error] 	at scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:788)
[error] 	at scala.collection.MapLike$MappedValues.foreach(MapLike.scala:253)
[error] 	at scala.collection.TraversableLike.map(TraversableLike.scala:234)
[error] 	at scala.collection.TraversableLike.map$(TraversableLike.scala:227)
[error] 	at scala.collection.AbstractTraversable.map(Traversable.scala:104)
[error] 	at coursier.ToSbt$.updateReport(ToSbt.scala:223)

I will open a PR in the next few days.

Read more comments on GitHub >

github_iconTop Results From Across the Web

sbt-coursier/build.sbt at main - GitHub
sbt -coursier/build.sbt ; org.scala-lang.modules · %% ; scala-xml · % ; 2.1.0 · // depending on that one so that it doesn't get...
Read more >
sbt-coursier - Scaladex
sbt -coursier-shared-shaded_2.12_1.0. Version: 2.0.8. Release Date: Mar 21, 2021. Licenses: Apache-2.0. Files: View all. sbt. addSbtPlugin("io.get-coursier" ...
Read more >
Unresolved dependency: org.scala-sbt#sbt;0.13: not found ...
Try using 0.13.1 . Put the following in project/build.properties : sbt.version=0.13.1. You will probably need the 0.13 sbt launcher as well.
Read more >
sbt Reference Manual — Configuring Scala
Configuring Scala tool dependencies. In order to compile Scala code, run scaladoc, and provide a Scala REPL, sbt needs the scala-compiler jar.
Read more >
How to See The Dependency Tree in SBT? | Baeldung on Scala
The solution now depends on our SBT version: For SBT 1.3.x, we need to include the sbt-dependency-graph plugin by adding the following to ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found