@@ -727,8 +727,6 @@ object Build {
727727 (" io.get-coursier" %% " coursier" % " 2.0.16" % Test ).cross(CrossVersion .for3Use2_13),
728728 ),
729729
730- (Compile / sourceGenerators) += ShadedSourceGenerator .task.taskValue,
731-
732730 // For convenience, change the baseDirectory when running the compiler
733731 Compile / forkOptions := (Compile / forkOptions).value.withWorkingDirectory((ThisBuild / baseDirectory).value),
734732 Compile / run / forkOptions := (Compile / run / forkOptions).value.withWorkingDirectory((ThisBuild / baseDirectory).value),
@@ -770,8 +768,6 @@ object Build {
770768 " -Ddotty.tests.classes.compilerInterface=" + findArtifactPath(externalDeps, " compiler-interface" ),
771769 " -Ddotty.tests.classes.scalaLibrary=" + findArtifactPath(externalDeps, " scala-library" ),
772770 " -Ddotty.tests.classes.scalaAsm=" + findArtifactPath(externalDeps, " scala-asm" ),
773- " -Ddotty.tests.classes.jlineTerminal=" + findArtifactPath(externalDeps, " jline-terminal" ),
774- " -Ddotty.tests.classes.jlineReader=" + findArtifactPath(externalDeps, " jline-reader" ),
775771 )
776772 },
777773
@@ -1781,11 +1777,13 @@ object Build {
17811777 version := dottyVersion,
17821778 versionScheme := Some (" semver-spec" ),
17831779 scalaVersion := referenceVersion,
1784- crossPaths := true , // org.scala-lang:scala3-tasty-inspector has a crosspath
1785- autoScalaLibrary := false , // do not add a dependency to stdlib, we depend transitively on the stdlib from `scala3-compiler-bootstrapped`
1780+ crossPaths := true ,
1781+ autoScalaLibrary := false ,
17861782 // Add the source directories for the sbt-bridge (boostrapped)
1787- Compile / unmanagedSourceDirectories := Seq (baseDirectory.value / " src" ),
1788- Test / unmanagedSourceDirectories := Seq (baseDirectory.value / " test" ),
1783+ Compile / unmanagedSourceDirectories := Seq (baseDirectory.value / " src" ),
1784+ Compile / unmanagedResourceDirectories := Seq (baseDirectory.value / " resources" ),
1785+ Test / unmanagedSourceDirectories := Seq (baseDirectory.value / " test" ),
1786+ Test / unmanagedResourceDirectories := Seq (baseDirectory.value / " test-resources" ),
17891787 // NOTE: The only difference here is that we drop `-Werror` and semanticDB for now
17901788 Compile / scalacOptions := Seq (" -deprecation" , " -feature" , " -unchecked" , " -encoding" , " UTF8" , " -language:implicitConversions" ),
17911789 // Make sure that the produced artifacts have the minimum JVM version in the bytecode
@@ -1799,6 +1797,12 @@ object Build {
17991797 Test / publishArtifact := false ,
18001798 publish / skip := false ,
18011799 libraryDependencies ++= Seq (
1800+ " org.jline" % " jline-reader" % " 3.29.0" ,
1801+ " org.jline" % " jline-terminal" % " 3.29.0" ,
1802+ " org.jline" % " jline-terminal-jni" % " 3.29.0" ,
1803+ " com.lihaoyi" %% " pprint" % " 0.9.3" ,
1804+ " com.lihaoyi" %% " fansi" % " 0.5.1" ,
1805+ " com.lihaoyi" %% " sourcecode" % " 0.4.4" ,
18021806 " com.github.sbt" % " junit-interface" % " 0.13.3" % Test ,
18031807 ),
18041808 // Configure to use the non-bootstrapped compiler
@@ -1839,7 +1843,8 @@ object Build {
18391843 Seq (
18401844 s " -Ddotty.tests.dottyCompilerManagedSources= ${managedSrcDir}" ,
18411845 s " -Ddotty.tests.classes.dottyInterfaces= ${(`scala3-interfaces` / Compile / packageBin).value}" ,
1842- s " -Ddotty.tests.classes.dottyCompiler= ${(ThisProject / Compile / packageBin).value}" ,
1846+ s " -Ddotty.tests.classes.dottyCompiler= ${(`scala3-compiler-bootstrapped-new` / Compile / packageBin).value}" ,
1847+ s " -Ddotty.tests.classes.dottyRepl= ${(ThisProject / Compile / packageBin).value}" ,
18431848 s " -Ddotty.tests.classes.tastyCore= ${(`tasty-core-bootstrapped-new` / Compile / packageBin).value}" ,
18441849 s " -Ddotty.tests.classes.compilerInterface= ${findArtifactPath(externalDeps, " compiler-interface" )}" ,
18451850 s " -Ddotty.tests.classes.scalaLibrary= ${(`scala-library-bootstrapped` / Compile / packageBin).value}" ,
@@ -1852,8 +1857,6 @@ object Build {
18521857 s " -Ddotty.tools.dotc.semanticdb.test= ${(ThisBuild / baseDirectory).value/ " tests" / " semanticdb" }" ,
18531858 )
18541859 },
1855- Test / forkOptions :=
1856- (Test / forkOptions).value.withWorkingDirectory((ThisBuild / baseDirectory).value),
18571860 )
18581861
18591862 // ==============================================================================================
@@ -2416,9 +2419,6 @@ object Build {
24162419 " com.github.sbt" % " junit-interface" % " 0.13.3" % Test ,
24172420 " org.scala-lang.modules" % " scala-asm" % " 9.8.0-scala-1" ,
24182421 Dependencies .compilerInterface,
2419- " org.jline" % " jline-reader" % " 3.29.0" ,
2420- " org.jline" % " jline-terminal" % " 3.29.0" ,
2421- " org.jline" % " jline-terminal-jni" % " 3.29.0" ,
24222422 (" io.get-coursier" %% " coursier" % " 2.0.16" % Test ).cross(CrossVersion .for3Use2_13),
24232423 ),
24242424 // NOTE: The only difference here is that we drop `-Werror` and semanticDB for now
@@ -2462,7 +2462,6 @@ object Build {
24622462
24632463 Seq (file)
24642464 }.taskValue,
2465- (Compile / sourceGenerators) += ShadedSourceGenerator .task.taskValue,
24662465 // sbt adds all the projects to scala-tool config which breaks building the scalaInstance
24672466 // as a workaround, I build it manually by only adding the compiler
24682467 managedScalaInstance := false ,
@@ -2558,8 +2557,6 @@ object Build {
25582557 s " -Ddotty.tests.classes.compilerInterface= ${findArtifactPath(externalDeps, " compiler-interface" )}" ,
25592558 s " -Ddotty.tests.classes.scalaLibrary= ${(`scala-library-nonbootstrapped` / Compile / packageBin).value}" ,
25602559 s " -Ddotty.tests.classes.scalaAsm= ${findArtifactPath(externalDeps, " scala-asm" )}" ,
2561- s " -Ddotty.tests.classes.jlineTerminal= ${findArtifactPath(externalDeps, " jline-terminal" )}" ,
2562- s " -Ddotty.tests.classes.jlineReader= ${findArtifactPath(externalDeps, " jline-reader" )}" ,
25632560 s " -Ddotty.tools.dotc.semanticdb.test= ${(ThisBuild / baseDirectory).value/ " tests" / " semanticdb" }" ,
25642561 )
25652562 },
@@ -2589,9 +2586,6 @@ object Build {
25892586 libraryDependencies ++= Seq (
25902587 " org.scala-lang.modules" % " scala-asm" % " 9.8.0-scala-1" ,
25912588 Dependencies .compilerInterface,
2592- " org.jline" % " jline-reader" % " 3.29.0" ,
2593- " org.jline" % " jline-terminal" % " 3.29.0" ,
2594- " org.jline" % " jline-terminal-jni" % " 3.29.0" ,
25952589 " com.github.sbt" % " junit-interface" % " 0.13.3" % Test ,
25962590 (" io.get-coursier" %% " coursier" % " 2.0.16" % Test ).cross(CrossVersion .for3Use2_13),
25972591 ),
@@ -2704,7 +2698,6 @@ object Build {
27042698 sjsSources
27052699 } (Set (scalaJSIRSourcesJar)).toSeq
27062700 }.taskValue,
2707- (Compile / sourceGenerators) += ShadedSourceGenerator .task.taskValue,
27082701 Compile / run / forkOptions := (Compile / run / forkOptions).value
27092702 .withWorkingDirectory((ThisBuild / baseDirectory).value),
27102703 // Configuration of the test suite
@@ -2733,8 +2726,6 @@ object Build {
27332726 s " -Ddotty.tests.classes.scalaLibrary= ${(`scala-library-bootstrapped` / Compile / packageBin).value}" ,
27342727 s " -Ddotty.tests.classes.scalaJSScalalib= ${(`scala-library-sjs` / Compile / packageBin).value}" ,
27352728 s " -Ddotty.tests.classes.scalaAsm= ${findArtifactPath(externalDeps, " scala-asm" )}" ,
2736- s " -Ddotty.tests.classes.jlineTerminal= ${findArtifactPath(externalDeps, " jline-terminal" )}" ,
2737- s " -Ddotty.tests.classes.jlineReader= ${findArtifactPath(externalDeps, " jline-reader" )}" ,
27382729 s " -Ddotty.tests.classes.dottyStaging= ${(LocalProject (" scala3-staging-new" ) / Compile / packageBin).value}" ,
27392730 s " -Ddotty.tests.classes.dottyTastyInspector= ${(LocalProject (" scala3-tasty-inspector-new" ) / Compile / packageBin).value}" ,
27402731 s " -Ddotty.tools.dotc.semanticdb.test= ${(ThisBuild / baseDirectory).value/ " tests" / " semanticdb" }" ,
@@ -3356,8 +3347,6 @@ object Build {
33563347 s " -Ddotty.tests.classes.compilerInterface= ${findArtifactPath(externalDeps, " compiler-interface" )}" ,
33573348 s " -Ddotty.tests.classes.scalaLibrary= ${(`scala-library-nonbootstrapped` / Compile / packageBin).value}" ,
33583349 s " -Ddotty.tests.classes.scalaAsm= ${findArtifactPath(externalDeps, " scala-asm" )}" ,
3359- s " -Ddotty.tests.classes.jlineTerminal= ${findArtifactPath(externalDeps, " jline-terminal" )}" ,
3360- s " -Ddotty.tests.classes.jlineReader= ${findArtifactPath(externalDeps, " jline-reader" )}" ,
33613350 s " -Ddotty.tools.dotc.semanticdb.test= ${(ThisBuild / baseDirectory).value/ " tests" / " semanticdb" }" ,
33623351 " -Ddotty.tests.classes.scalaJSScalalib=" + (`scala-library-sjs` / Compile / packageBin).value,
33633352 " -Ddotty.tests.classes.scalaJSJavalib=" + findArtifactPath(externalJSDeps, " scalajs-javalib" ),
0 commit comments