Skip to content

Commit

Permalink
Fix dummy scala-library
Browse files Browse the repository at this point in the history
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
  • Loading branch information
smarter committed Jan 6, 2017
1 parent 42eb864 commit 49ab23c
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -555,11 +555,15 @@ object DottyInjectedPlugin extends AutoPlugin {
}
)

lazy val `scala-library` = project
.settings(
libraryDependencies += "org.scala-lang" % "scala-library" % scalaVersion.value
)
.settings(publishing)

// Dummy scala-library artefact. This is useful because sbt projects
// automatically depend on scalaOrganization.value % "scala-library" % scalaVersion.value
lazy val `scala-library` = project.
dependsOn(`dotty-library`).
settings(
crossPaths := false
).
settings(publishing)

lazy val publishing = Seq(
publishMavenStyle := true,
Expand Down

0 comments on commit 49ab23c

Please sign in to comment.