@@ -1153,26 +1153,23 @@ object Build {
1153
1153
)
1154
1154
1155
1155
lazy val `scala3-presentation-compiler` = project.in(file(" presentation-compiler" ))
1156
- .asScala3PresentationCompiler(NonBootstrapped )
1157
- lazy val `scala3-presentation-compiler-bootstrapped` = project.in(file(" presentation-compiler" ))
1158
- .asScala3PresentationCompiler(Bootstrapped )
1156
+ .withCommonSettings(Bootstrapped )
1157
+ .dependsOn(`scala3-compiler-bootstrapped`, `scala3-library-bootstrapped`, `scala3-presentation-compiler-testcases` % " test->test" )
1158
+ .settings(presentationCompilerSettings)
1159
+ .settings(scala3PresentationCompilerBuildInfo)
1159
1160
1160
- def scala3PresentationCompiler (implicit mode : Mode ): Project = mode match {
1161
- case NonBootstrapped => `scala3-presentation-compiler`
1162
- case Bootstrapped => `scala3-presentation-compiler-bootstrapped`
1163
- }
1164
-
1165
- def scala3PresentationCompilerBuildInfo (implicit mode : Mode ) =
1161
+ def scala3PresentationCompilerBuildInfo =
1166
1162
Seq (
1167
1163
ideTestsDependencyClasspath := {
1168
- val dottyLib = (dottyLibrary / Compile / classDirectory).value
1164
+ val testCasesLib = (`scala3-presentation-compiler-testcases` / Compile / classDirectory).value
1165
+ val dottyLib = (`scala3-library-bootstrapped` / Compile / classDirectory).value
1169
1166
val scalaLib =
1170
- (dottyLibrary / Compile / dependencyClasspath)
1167
+ (`scala3-library-bootstrapped` / Compile / dependencyClasspath)
1171
1168
.value
1172
1169
.map(_.data)
1173
1170
.filter(_.getName.matches(" scala-library.*\\ .jar" ))
1174
1171
.toList
1175
- dottyLib :: scalaLib
1172
+ testCasesLib :: dottyLib :: scalaLib
1176
1173
// Nil
1177
1174
},
1178
1175
Compile / buildInfoPackage := " dotty.tools.pc.buildinfo" ,
@@ -1231,6 +1228,10 @@ object Build {
1231
1228
)
1232
1229
}
1233
1230
1231
+ lazy val `scala3-presentation-compiler-testcases` = project.in(file(" presentation-compiler-testcases" ))
1232
+ .dependsOn(`scala3-compiler-bootstrapped`)
1233
+ .settings(commonBootstrappedSettings)
1234
+
1234
1235
lazy val `scala3-language-server` = project.in(file(" language-server" )).
1235
1236
dependsOn(dottyCompiler(Bootstrapped )).
1236
1237
settings(commonBootstrappedSettings).
@@ -1959,7 +1960,7 @@ object Build {
1959
1960
1960
1961
// FIXME: we do not aggregate `bin` because its tests delete jars, thus breaking other tests
1961
1962
def asDottyRoot (implicit mode : Mode ): Project = project.withCommonSettings.
1962
- aggregate(`scala3-interfaces`, dottyLibrary, dottyCompiler, tastyCore, `scala3-sbt-bridge`, scala3PresentationCompiler ).
1963
+ aggregate(`scala3-interfaces`, dottyLibrary, dottyCompiler, tastyCore, `scala3-sbt-bridge`, `scala3-presentation-compiler` ).
1963
1964
bootstrappedAggregate(`scala3-language-server`, `scala3-staging`,
1964
1965
`scala3-tasty-inspector`, `scala3-library-bootstrappedJS`, scaladoc).
1965
1966
dependsOn(tastyCore).
0 commit comments