Skip to content

Commit 2ebd982

Browse files
committed
The root project now aggregates the other projects
Before this commit, commands such as "test" would not run anything, which means that the JUnit tests were never run.
1 parent 3979905 commit 2ebd982

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

project/Build.scala

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,15 @@ object DottyBuild extends Build {
7777
)
7878

7979
/** Projects -------------------------------------------------------------- */
80+
// The root project:
81+
// - aggregates other projects so that "compile", "test", etc are run on all projects at once.
82+
// - publishes its own empty artifact "dotty" that depends on "dotty-library" and "dotty-compiler",
83+
// this is only necessary for compatibility with sbt which currently hardcodes the "dotty" artifact name
8084
lazy val dotty = project.in(file(".")).
85+
// FIXME: we do not aggregate `bin` because its tests delete jars, thus breaking other tests
86+
aggregate(`dotty-interfaces`, `dotty-library`, `dotty-compiler`, `dotty-sbt-bridge`, `scala-library`).
8187
dependsOn(`dotty-compiler`).
8288
dependsOn(`dotty-library`).
83-
dependsOn(`dotty-interfaces`).
8489
settings(
8590
addCommandAlias("dotr", "dotty-compiler/dotr") ++
8691
addCommandAlias("dotc", "dotty-compiler/dotc") ++
@@ -341,6 +346,7 @@ object DottyBuild extends Build {
341346
lazy val bin = project.in(file("bin")).
342347
settings(sourceStructure).
343348
settings(
349+
publishArtifact := false,
344350
parallelExecution in Test := false,
345351
libraryDependencies +=
346352
"com.novocode" % "junit-interface" % "0.11" % "test"

0 commit comments

Comments
 (0)