@@ -271,7 +271,7 @@ object Build {
271271 Keys .scalaSource, Keys .javaSource
272272 ),
273273
274- // This is used to download nightly builds of the Scala 2 library in `stdlib -bootstrapped`
274+ // This is used to download nightly builds of the Scala 2 library in `scala2-library -bootstrapped`
275275 resolvers += " scala-integration" at " https://scala-ci.typesafe.com/artifactory/scala-integration/" ,
276276 )
277277
@@ -723,7 +723,7 @@ object Build {
723723 val externalDeps = externalCompilerClasspathTask.value
724724 val jars = packageAll.value
725725 val scalaLib = findArtifactPath(externalDeps, " scala-library" )
726- val scalaLibTastyOpt = jars.get(" stdlib-bootstrapped -tasty" )
726+ val scalaLibTastyOpt = jars.get(" scala2-library -tasty" )
727727 val dottyLib = jars(" scala3-library" )
728728 val dottyCompiler = jars(" scala3-compiler" )
729729 val args0 : List [String ] = spaceDelimited(" <arg>" ).parsed.toList
@@ -857,7 +857,7 @@ object Build {
857857 " scala3-staging" -> (LocalProject (" scala3-staging" ) / Compile / packageBin).value.getAbsolutePath,
858858 " scala3-tasty-inspector" -> (LocalProject (" scala3-tasty-inspector" ) / Compile / packageBin).value.getAbsolutePath,
859859 " tasty-core" -> (LocalProject (" tasty-core-bootstrapped" ) / Compile / packageBin).value.getAbsolutePath,
860- " stdlib-bootstrapped -tasty" -> (LocalProject (" stdlib-bootstrapped -tasty" ) / Compile / packageBin).value.getAbsolutePath,
860+ " scala2-library -tasty" -> (LocalProject (" scala2-library -tasty" ) / Compile / packageBin).value.getAbsolutePath,
861861 )
862862 },
863863
@@ -982,7 +982,7 @@ object Build {
982982 *
983983 * This version of the library is not (yet) TASTy/binary compatible with the Scala 2 compiled library.
984984 */
985- lazy val `stdlib- bootstrapped` = project.in(file(" stdlib -bootstrapped" )).
985+ lazy val `scala2-library- bootstrapped` = project.in(file(" scala2-library -bootstrapped" )).
986986 withCommonSettings(Bootstrapped ).
987987 dependsOn(dottyCompiler(Bootstrapped ) % " provided; compile->runtime; test->test" ).
988988 settings(commonBootstrappedSettings).
@@ -1071,7 +1071,7 @@ object Build {
10711071 | - final val MinorVersion = $minorVersion
10721072 | - final val ExperimentalVersion = 0
10731073 | * Clean everiting to generate a compiler with those new TASTy vesrions
1074- | * Run stdlib -bootstrapped/tastyMiMaReportIssues
1074+ | * Run scala2-library -bootstrapped/tastyMiMaReportIssues
10751075 | """ .stripMargin)
10761076
10771077 }).value,
@@ -1115,56 +1115,56 @@ object Build {
11151115 println(
11161116 s """ Usage:
11171117 |> $projectName/run list
1118- | -- lists all files that are not overriden in stdlib -bootstrapped/src
1118+ | -- lists all files that are not overriden in scala2-library -bootstrapped/src
11191119 |
11201120 |> $projectName/run clone <sources>*
1121- | -- clones the specified sources from the stdlib -bootstrapped/src
1121+ | -- clones the specified sources from the scala2-library -bootstrapped/src
11221122 | -- example: $projectName/run clone scala/Option.scala
11231123 |
11241124 |> $projectName/run overwrite <sources>*
1125- | -- (danger) overwrites the specified sources from the stdlib -bootstrapped/src
1125+ | -- (danger) overwrites the specified sources from the scala2-library -bootstrapped/src
11261126 | """ .stripMargin)
11271127 }
11281128 }
11291129 )
11301130
1131- /** Packages the TASTy files of `stdlib -bootstrapped` in a jar */
1132- lazy val `stdlib-bootstrapped -tasty` = project.in(file(" stdlib-bootstrapped -tasty" )).
1131+ /** Packages the TASTy files of `scala2-library -bootstrapped` in a jar */
1132+ lazy val `scala2-library -tasty` = project.in(file(" scala2-library -tasty" )).
11331133 withCommonSettings(Bootstrapped ).
11341134 settings(
11351135 exportJars := true ,
11361136 Compile / packageBin / mappings := {
1137- (`stdlib -bootstrapped` / Compile / packageBin / mappings).value
1137+ (`scala2-library -bootstrapped` / Compile / packageBin / mappings).value
11381138 .filter(_._2.endsWith(" .tasty" ))
11391139 },
11401140 )
11411141
1142- /** Test the tasty generated by `stdlib -bootstrapped`
1142+ /** Test the tasty generated by `scala2-library -bootstrapped`
11431143 *
1144- * The sources in src are compiled using TASTy from stdlib-bootstrapped -tasty but then run
1144+ * The sources in src are compiled using TASTy from scala2-library -tasty but then run
11451145 * with the scala-library compiled be Scala 2.
11461146 *
11471147 * The tests are run with the bootstrapped compiler and the tasty inpector on the classpath.
1148- * The classpath has the default `scala-library` and not `stdlib -bootstrapped`.
1148+ * The classpath has the default `scala-library` and not `scala2-library -bootstrapped`.
11491149 *
1150- * The jar of `stdlib -bootstrapped` is provided for to the tests.
1150+ * The jar of `scala2-library -bootstrapped` is provided for to the tests.
11511151 * - inspector: test that we can load the contents of the jar using the tasty inspector
11521152 * - from-tasty: test that we can recompile the contents of the jar using `dotc -from-tasty`
11531153 */
1154- lazy val `stdlib-bootstrapped -tasty-tests` = project.in(file(" stdlib-bootstrapped -tasty-tests" )).
1154+ lazy val `scala2-library -tasty-tests` = project.in(file(" scala2-library -tasty-tests" )).
11551155 withCommonSettings(Bootstrapped ).
11561156 dependsOn(dottyCompiler(Bootstrapped ) % " compile->compile" ).
11571157 dependsOn(`scala3-tasty-inspector` % " test->test" ).
1158- dependsOn(`stdlib-bootstrapped -tasty`).
1158+ dependsOn(`scala2-library -tasty`).
11591159 settings(commonBootstrappedSettings).
11601160 settings(
11611161 javaOptions := (`scala3-compiler-bootstrapped` / javaOptions).value,
1162- Test / javaOptions += " -Ddotty.scala.library=" + (`stdlib -bootstrapped` / Compile / packageBin).value.getAbsolutePath,
1162+ Test / javaOptions += " -Ddotty.scala.library=" + (`scala2-library -bootstrapped` / Compile / packageBin).value.getAbsolutePath,
11631163 Compile / compile / fullClasspath ~= {
11641164 _.filterNot(file => file.data.getName == s " scala-library- $stdlibBootstrappedVersion.jar " )
11651165 },
11661166 Compile / compile / dependencyClasspath := {
1167- // make sure that the scala2-library (tasty of `stdlib-bootstrapped -tasty`) is listed before the scala-library (classfiles)
1167+ // make sure that the scala2-library (tasty of `scala2-library -tasty`) is listed before the scala-library (classfiles)
11681168 val (bootstrappedLib, otherLibs) =
11691169 (Compile / compile / dependencyClasspath).value
11701170 .partition(_.data.getName == s " scala2-library- ${dottyVersion}.jar " )
@@ -2116,7 +2116,7 @@ object ScaladocConfigs {
21162116
21172117 def defaultSourceLinks (version : String = dottyNonBootstrappedVersion, refVersion : String = dottyVersion) = Def .task {
21182118 def stdLibVersion = stdlibVersion(NonBootstrapped )
2119- def srcManaged (v : String , s : String ) = s " out/bootstrap/stdlib -bootstrapped/scala- $v/src_managed/main/ $s-library-src "
2119+ def srcManaged (v : String , s : String ) = s " out/bootstrap/scala2-library -bootstrapped/scala- $v/src_managed/main/ $s-library-src "
21202120 SourceLinks (
21212121 List (
21222122 scalaSrcLink(stdLibVersion, srcManaged(version, " scala" ) + " =" ),
@@ -2204,7 +2204,7 @@ object ScaladocConfigs {
22042204
22052205 lazy val Scala3 = Def .task {
22062206 val dottyJars : Seq [java.io.File ] = Seq (
2207- (`stdlib -bootstrapped`/ Compile / products).value,
2207+ (`scala2-library -bootstrapped`/ Compile / products).value,
22082208 (`scala3-library-bootstrapped`/ Compile / products).value,
22092209 (`scala3-interfaces`/ Compile / products).value,
22102210 (`tasty-core-bootstrapped`/ Compile / products).value,
@@ -2213,7 +2213,7 @@ object ScaladocConfigs {
22132213 val roots = dottyJars.map(_.getAbsolutePath)
22142214
22152215 val managedSources =
2216- (`stdlib -bootstrapped`/ Compile / sourceManaged).value / " scala-library-src"
2216+ (`scala2-library -bootstrapped`/ Compile / sourceManaged).value / " scala-library-src"
22172217 val projectRoot = (ThisBuild / baseDirectory).value.toPath
22182218 val stdLibRoot = projectRoot.relativize(managedSources.toPath.normalize())
22192219 val docRootFile = stdLibRoot.resolve(" rootdoc.txt" )
@@ -2246,7 +2246,7 @@ object ScaladocConfigs {
22462246 }
22472247
22482248 def stableScala3 (version : String ) = Def .task {
2249- val scalaLibrarySrc = s " out/bootstrap/stdlib -bootstrapped/scala- $version-bin-SNAPSHOT-nonbootstrapped/src_managed "
2249+ val scalaLibrarySrc = s " out/bootstrap/scala2-library -bootstrapped/scala- $version-bin-SNAPSHOT-nonbootstrapped/src_managed "
22502250 val dottyLibrarySrc = " library/src"
22512251 Scala3 .value
22522252 .add(defaultSourceLinks(version + " -bin-SNAPSHOT-nonbootstrapped" , version).value)
@@ -2265,7 +2265,7 @@ object ScaladocConfigs {
22652265 .add(DocRootContent (s " $scalaLibrarySrc/rootdoc.txt " ))
22662266 .withTargets(
22672267 Seq (
2268- s " out/bootstrap/stdlib -bootstrapped/scala- $version-bin-SNAPSHOT-nonbootstrapped/classes " ,
2268+ s " out/bootstrap/scala2-library -bootstrapped/scala- $version-bin-SNAPSHOT-nonbootstrapped/classes " ,
22692269 s " out/bootstrap/scala3-library-bootstrapped/scala- $version-bin-SNAPSHOT-nonbootstrapped/classes " ,
22702270 s " tmp/interfaces/target/classes " ,
22712271 s " out/bootstrap/tasty-core-bootstrapped/scala- $version-bin-SNAPSHOT-nonbootstrapped/classes "
0 commit comments