diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2017-01-08 21:56:47 +0100 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2017-01-08 22:20:25 +0100 |
commit | 76e2cce8ee86cf9901b6119adc0d8260f0e783e7 (patch) | |
tree | c4d94261749b79bd9571c469751c49082c2544f5 /project | |
parent | add9a03fc3a4fe61d53ddf956dfd6f451f19f46b (diff) | |
download | dotty-76e2cce8ee86cf9901b6119adc0d8260f0e783e7.tar.gz dotty-76e2cce8ee86cf9901b6119adc0d8260f0e783e7.tar.bz2 dotty-76e2cce8ee86cf9901b6119adc0d8260f0e783e7.zip |
Add dummy scala{-compiler,-reflect,p}
This is needed to make dotty-compiled projects work with sbt 0.13.13, the
other needed fix is https://github.com/sbt/sbt/pull/2897
Diffstat (limited to 'project')
-rw-r--r-- | project/Build.scala | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/project/Build.scala b/project/Build.scala index 56f381cda..99a6c5077 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -96,7 +96,8 @@ object DottyBuild extends Build { // this is only necessary for compatibility with sbt which currently hardcodes the "dotty" artifact name lazy val dotty = project.in(file(".")). // FIXME: we do not aggregate `bin` because its tests delete jars, thus breaking other tests - aggregate(`dotty-interfaces`, `dotty-library`, `dotty-compiler`, dottySbtBridgeRef, `scala-library`). + aggregate(`dotty-interfaces`, `dotty-library`, `dotty-compiler`, dottySbtBridgeRef, + `scala-library`, `scala-compiler`, `scala-reflect`, `scalap`). dependsOn(`dotty-compiler`). dependsOn(`dotty-library`). settings( @@ -559,6 +560,32 @@ object DottyInjectedPlugin extends AutoPlugin { ). settings(publishing) + // sbt >= 0.13.12 will automatically rewrite transitive dependencies on + // any version in any organization of scala{-library,-compiler,-reflect,p} + // to have organization `scalaOrganization` and version `scalaVersion` + // (see https://github.com/sbt/sbt/pull/2634). + // This means that we need to provide dummy artefacts for these projects, + // otherwise users will get compilation errors if they happen to transitively + // depend on one of these projects. + lazy val `scala-compiler` = project. + settings( + crossPaths := false, + libraryDependencies := Seq(scalaCompiler) + ). + settings(publishing) + lazy val `scala-reflect` = project. + settings( + crossPaths := false, + libraryDependencies := Seq("org.scala-lang" % "scala-reflect" % scalaVersion.value) + ). + settings(publishing) + lazy val `scalap` = project. + settings( + crossPaths := false, + libraryDependencies := Seq("org.scala-lang" % "scalap" % scalaVersion.value) + ). + settings(publishing) + lazy val publishing = Seq( publishMavenStyle := true, publishArtifact := true, |