Skip to content

Commit 49ab23c

Browse files
committed
Fix dummy scala-library
To be useful, the dummy scala-library: - needs to be published with crossPaths off (the "_2.11" path of the artefact name), like the real scala-library - should depend on dotty-library and not just scala-library, since this is what is needed to compile dotty programs
1 parent 42eb864 commit 49ab23c

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

project/Build.scala

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -555,11 +555,15 @@ object DottyInjectedPlugin extends AutoPlugin {
555555
}
556556
)
557557

558-
lazy val `scala-library` = project
559-
.settings(
560-
libraryDependencies += "org.scala-lang" % "scala-library" % scalaVersion.value
561-
)
562-
.settings(publishing)
558+
559+
// Dummy scala-library artefact. This is useful because sbt projects
560+
// automatically depend on scalaOrganization.value % "scala-library" % scalaVersion.value
561+
lazy val `scala-library` = project.
562+
dependsOn(`dotty-library`).
563+
settings(
564+
crossPaths := false
565+
).
566+
settings(publishing)
563567

564568
lazy val publishing = Seq(
565569
publishMavenStyle := true,

0 commit comments

Comments
 (0)