@@ -2445,6 +2445,40 @@ object Build {
2445
2445
},
2446
2446
)
2447
2447
2448
+ // ==============================================================================================
2449
+ // ========================================= TEST SUITE =========================================
2450
+ // ==============================================================================================
2451
+
2452
+ lazy val `sbt-test-new` = project.in(file(" sbt-test" ))
2453
+ .enablePlugins(ScriptedPlugin )
2454
+ .settings(
2455
+ sbtTestDirectory := baseDirectory.value,
2456
+ // The batch mode accidentally became the default with no way to disable
2457
+ // it in sbt 1.4 (https://github.com/sbt/sbt/issues/5913#issuecomment-716003195).
2458
+ // We enable it explicitly here to make it clear that we're using it.
2459
+ scriptedBatchExecution := true ,
2460
+ scriptedLaunchOpts ++= Seq (
2461
+ s " -Dplugin.scalaVersion= ${dottyVersion}" ,
2462
+ s " -Dplugin.scala2Version= ${stdlibVersion(Bootstrapped )}" ,
2463
+ s " -Dplugin.scalaJSVersion= ${scalaJSVersion}" ,
2464
+ ),
2465
+ scriptedBufferLog := true ,
2466
+ scripted := scripted.dependsOn(
2467
+ (`scala3-sbt-bridge-bootstrapped` / publishLocalBin),
2468
+ (`scala3-interfaces` / publishLocalBin),
2469
+ (`scala3-compiler-bootstrapped-new` / publishLocalBin),
2470
+ (`scala3-library-bootstrapped-new` / publishLocalBin),
2471
+ (`scala-library-bootstrapped` / publishLocalBin),
2472
+ (`scala-library-sjs` / publishLocalBin),
2473
+ (`scala3-library-sjs` / publishLocalBin),
2474
+ (`tasty-core-bootstrapped-new` / publishLocalBin),
2475
+ (`scala3-staging-new` / publishLocalBin),
2476
+ (`scala3-tasty-inspector-new` / publishLocalBin),
2477
+ (`scaladoc-new` / publishLocalBin),
2478
+ (`scala3-bootstrapped-new` / publishLocalBin),
2479
+ ).evaluated,
2480
+ )
2481
+
2448
2482
def dottyLibrary (implicit mode : Mode ): Project = mode match {
2449
2483
case NonBootstrapped => `scala3-library`
2450
2484
case Bootstrapped => `scala3-library-bootstrapped`
0 commit comments