@@ -2684,6 +2684,40 @@ object Build {
2684
2684
},
2685
2685
)
2686
2686
2687
+ // ==============================================================================================
2688
+ // ========================================= TEST SUITE =========================================
2689
+ // ==============================================================================================
2690
+
2691
+ lazy val `sbt-test-new` = project.in(file(" sbt-test" ))
2692
+ .enablePlugins(ScriptedPlugin )
2693
+ .settings(
2694
+ sbtTestDirectory := baseDirectory.value,
2695
+ // The batch mode accidentally became the default with no way to disable
2696
+ // it in sbt 1.4 (https://github.com/sbt/sbt/issues/5913#issuecomment-716003195).
2697
+ // We enable it explicitly here to make it clear that we're using it.
2698
+ scriptedBatchExecution := true ,
2699
+ scriptedLaunchOpts ++= Seq (
2700
+ s " -Dplugin.scalaVersion= ${dottyVersion}" ,
2701
+ s " -Dplugin.scala2Version= ${stdlibVersion(Bootstrapped )}" ,
2702
+ s " -Dplugin.scalaJSVersion= ${scalaJSVersion}" ,
2703
+ ),
2704
+ scriptedBufferLog := true ,
2705
+ scripted := scripted.dependsOn(
2706
+ (`scala3-sbt-bridge-bootstrapped` / publishLocalBin),
2707
+ (`scala3-interfaces` / publishLocalBin),
2708
+ (`scala3-compiler-bootstrapped-new` / publishLocalBin),
2709
+ (`scala3-library-bootstrapped-new` / publishLocalBin),
2710
+ (`scala-library-bootstrapped` / publishLocalBin),
2711
+ (`scala-library-sjs` / publishLocalBin),
2712
+ (`scala3-library-sjs` / publishLocalBin),
2713
+ (`tasty-core-bootstrapped-new` / publishLocalBin),
2714
+ (`scala3-staging-new` / publishLocalBin),
2715
+ (`scala3-tasty-inspector-new` / publishLocalBin),
2716
+ (`scaladoc-new` / publishLocalBin),
2717
+ (`scala3-bootstrapped-new` / publishLocalBin),
2718
+ ).evaluated,
2719
+ )
2720
+
2687
2721
def dottyLibrary (implicit mode : Mode ): Project = mode match {
2688
2722
case NonBootstrapped => `scala3-library`
2689
2723
case Bootstrapped => `scala3-library-bootstrapped`
0 commit comments