Skip to content

Commit c58fe5c

Browse files
committed
Add missing scala-library dependency
This had been missing for a while, but was only discovered now because dotty-compiler used to depend on scala-reflect which pulled in the correct scala-library.
1 parent 7a3f880 commit c58fe5c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

project/Build.scala

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,14 @@ object DottyInjectedPlugin extends AutoPlugin {
828828
// depend on the dotty-library
829829
lazy val `scala-library` = project.
830830
dependsOn(`dotty-library-bootstrapped`).
831-
settings(commonDummySettings)
831+
settings(commonDummySettings).
832+
settings(
833+
// Need a direct dependency on the real scala-library even though we indirectly
834+
// depend on it via dotty-library, because sbt may rewrite dependencies
835+
// (see https://github.com/sbt/sbt/pull/2634), but won't rewrite the direct
836+
// dependencies of scala-library (see https://github.com/sbt/sbt/pull/2897)
837+
libraryDependencies += "org.scala-lang" % "scala-library" % scalacVersion
838+
)
832839

833840
lazy val `scala-compiler` = project.
834841
settings(commonDummySettings)

0 commit comments

Comments
 (0)