@@ -1152,27 +1152,25 @@ object Build {
1152
1152
libraryDependencies += (" org.scala-sbt" %% " zinc-apiinfo" % " 1.8.0" % Test ).cross(CrossVersion .for3Use2_13)
1153
1153
)
1154
1154
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 )
1159
1155
1160
- def scala3PresentationCompiler (implicit mode : Mode ): Project = mode match {
1161
- case NonBootstrapped => `scala3-presentation-compiler`
1162
- case Bootstrapped => `scala3-presentation-compiler-bootstrapped`
1163
- }
1156
+ lazy val `scala3-presentation-compiler` = project.in(file(" presentation-compiler" ))
1157
+ .withCommonSettings(Bootstrapped )
1158
+ .dependsOn(`scala3-compiler-bootstrapped`, `scala3-library-bootstrapped`, `scala3-presentation-compiler-testcases` % " test->test" )
1159
+ .settings(presentationCompilerSettings)
1160
+ .settings(scala3PresentationCompilerBuildInfo)
1164
1161
1165
- def scala3PresentationCompilerBuildInfo ( implicit mode : Mode ) =
1162
+ def scala3PresentationCompilerBuildInfo =
1166
1163
Seq (
1167
1164
ideTestsDependencyClasspath := {
1168
- val dottyLib = (dottyLibrary / Compile / classDirectory).value
1165
+ val testCasesLib = (`scala3-presentation-compiler-testcases` / Compile / classDirectory).value
1166
+ val dottyLib = (`scala3-library-bootstrapped` / Compile / classDirectory).value
1169
1167
val scalaLib =
1170
- (dottyLibrary / Compile / dependencyClasspath)
1168
+ (`scala3-library-bootstrapped` / Compile / dependencyClasspath)
1171
1169
.value
1172
1170
.map(_.data)
1173
1171
.filter(_.getName.matches(" scala-library.*\\ .jar" ))
1174
1172
.toList
1175
- dottyLib :: scalaLib
1173
+ testCasesLib :: dottyLib :: scalaLib
1176
1174
// Nil
1177
1175
},
1178
1176
Compile / buildInfoPackage := " dotty.tools.pc.buildinfo" ,
@@ -1231,6 +1229,10 @@ object Build {
1231
1229
)
1232
1230
}
1233
1231
1232
+ lazy val `scala3-presentation-compiler-testcases` = project.in(file(" presentation-compiler-testcases" ))
1233
+ .dependsOn(`scala3-compiler-bootstrapped`)
1234
+ .settings(commonBootstrappedSettings)
1235
+
1234
1236
lazy val `scala3-language-server` = project.in(file(" language-server" )).
1235
1237
dependsOn(dottyCompiler(Bootstrapped )).
1236
1238
settings(commonBootstrappedSettings).
@@ -1959,7 +1961,7 @@ object Build {
1959
1961
1960
1962
// FIXME: we do not aggregate `bin` because its tests delete jars, thus breaking other tests
1961
1963
def asDottyRoot (implicit mode : Mode ): Project = project.withCommonSettings.
1962
- aggregate(`scala3-interfaces`, dottyLibrary, dottyCompiler, tastyCore, `scala3-sbt-bridge`, scala3PresentationCompiler ).
1964
+ aggregate(`scala3-interfaces`, dottyLibrary, dottyCompiler, tastyCore, `scala3-sbt-bridge`, `scala3-presentation-compiler` ).
1963
1965
bootstrappedAggregate(`scala3-language-server`, `scala3-staging`,
1964
1966
`scala3-tasty-inspector`, `scala3-library-bootstrappedJS`, scaladoc).
1965
1967
dependsOn(tastyCore).
@@ -2038,11 +2040,6 @@ object Build {
2038
2040
settings(commonBenchmarkSettings).
2039
2041
enablePlugins(JmhPlugin )
2040
2042
2041
- def asScala3PresentationCompiler (implicit mode : Mode ): Project = project.withCommonSettings.
2042
- dependsOn(dottyCompiler, dottyLibrary).
2043
- settings(presentationCompilerSettings).
2044
- settings(scala3PresentationCompilerBuildInfo)
2045
-
2046
2043
def asDist (implicit mode : Mode ): Project = project.
2047
2044
enablePlugins(PackPlugin ).
2048
2045
withCommonSettings.
0 commit comments