Skip to content

Commit c0779ea

Browse files
committed
Fix name clashes on sbt subprojects and git submodules.
1 parent 7575916 commit c0779ea

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

build.sbt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ val `dotty-sbt-bridge-bootstrapped` = Build.`dotty-sbt-bridge-bootstrapped`
1414
val `dotty-sbt-scripted-tests` = Build.`dotty-sbt-scripted-tests`
1515
val sjsSandbox = Build.sjsSandbox
1616
val `dotty-bench` = Build.`dotty-bench`
17-
val `scala-library` = Build.`scala-library`
18-
val `scala-compiler` = Build.`scala-compiler`
19-
val `scala-reflect` = Build.`scala-reflect`
17+
val `scala2-library` = Build.`scala2-library`
18+
val `scala2-compiler` = Build.`scala2-compiler`
19+
val `scala2-reflect` = Build.`scala2-reflect`
2020
val scalap = Build.scalap
2121

2222
inThisBuild(Build.thisBuildSettings)

project/Build.scala

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ object Build {
150150
scalacOptions ++= Seq("-bootclasspath", sys.props("sun.boot.class.path")),
151151

152152
// sbt gets very unhappy if two projects use the same target
153-
target := baseDirectory.value / ".." / "out" / name.value,
153+
target := baseDirectory.value / ".." / "out" / "bootstrap" / name.value,
154154

155155
// The non-bootstrapped dotty-library is not necessary when bootstrapping dotty
156156
autoScalaLibrary := false,
@@ -241,7 +241,7 @@ object Build {
241241
lazy val `dotty-bootstrapped` = project.
242242
aggregate(`dotty-interfaces`, `dotty-library-bootstrapped`, `dotty-compiler-bootstrapped`, `dotty-doc-bootstrapped`,
243243
dottySbtBridgeBootstrappedRef,
244-
`scala-library`, `scala-compiler`, `scala-reflect`, scalap).
244+
`scala2-library`, `scala2-compiler`, `scala2-reflect`, scalap).
245245
dependsOn(`dotty-compiler-bootstrapped`).
246246
dependsOn(`dotty-library-bootstrapped`).
247247
settings(commonBootstrappedSettings)
@@ -714,8 +714,8 @@ object Build {
714714
val x1 = (publishLocal in `dotty-interfaces`).value
715715
val x2 = (publishLocal in `dotty-compiler-bootstrapped`).value
716716
val x3 = (publishLocal in `dotty-library-bootstrapped`).value
717-
val x4 = (publishLocal in `scala-library`).value
718-
val x5 = (publishLocal in `scala-reflect`).value
717+
val x4 = (publishLocal in `scala2-library`).value
718+
val x5 = (publishLocal in `scala2-reflect`).value
719719
val x6 = (publishLocal in `dotty-bootstrapped`).value // Needed because sbt currently hardcodes the dotty artifact
720720
}).evaluated
721721
// TODO: Use this instead of manually copying DottyInjectedPlugin.scala
@@ -825,13 +825,13 @@ object DottyInjectedPlugin extends AutoPlugin {
825825

826826
// Depend on dotty-library so that sbt projects using dotty automatically
827827
// depend on the dotty-library
828-
lazy val `scala-library` = project.
828+
lazy val `scala2-library` = project.
829829
dependsOn(`dotty-library-bootstrapped`).
830830
settings(commonDummySettings)
831831

832-
lazy val `scala-compiler` = project.
832+
lazy val `scala2-compiler` = project.
833833
settings(commonDummySettings)
834-
lazy val `scala-reflect` = project.
834+
lazy val `scala2-reflect` = project.
835835
settings(commonDummySettings).
836836
settings(
837837
libraryDependencies := Seq("org.scala-lang" % "scala-reflect" % scalacVersion)

0 commit comments

Comments
 (0)