@@ -1411,6 +1411,33 @@ object Build {
1411
1411
)
1412
1412
)
1413
1413
1414
+ // ==============================================================================================
1415
+ // =================================== SCALA STANDARD LIBRARY ===================================
1416
+ // ==============================================================================================
1417
+
1418
+ /* Configuration of the org.scala-lang:scala-library:*.**.**-nonboostrapped project */
1419
+ lazy val `scala-library-nonbootstrapped` = project.in(file(" library" ))
1420
+ .settings(
1421
+ name := " scala-library-nonbootstrapped" ,
1422
+ moduleName := " scala-library" ,
1423
+ version := dottyNonBootstrappedVersion,
1424
+ versionScheme := Some (" semver-spec" ),
1425
+ scalaVersion := referenceVersion, // nonbootstrapped artifacts are compiled with the reference compiler (already officially published)
1426
+ crossPaths := false , // org.scala-lang:scala-library doesn't have a crosspath
1427
+ // NOTE: The only difference here is that we drop `-Werror` and semanticDB for now
1428
+ Compile / scalacOptions := Seq (" -deprecation" , " -feature" , " -unchecked" , " -encoding" , " UTF8" , " -language:implicitConversions" ),
1429
+ // Add the source directories for the stdlib (non-boostrapped)
1430
+ Compile / unmanagedSourceDirectories := Seq (baseDirectory.value / " src" ),
1431
+ Compile / unmanagedSourceDirectories += baseDirectory.value / " src-non-bootstrapped" ,
1432
+ // Only publish compilation artifacts, no test artifacts
1433
+ Compile / publishArtifact := true ,
1434
+ Test / publishArtifact := false ,
1435
+ // Do not allow to publish this project for now
1436
+ publish / skip := true ,
1437
+ // Project specific target folder. sbt doesn't like having two projects using the same target folder
1438
+ target := target.value / " scala-library-nonbootstrapped" ,
1439
+ )
1440
+
1414
1441
def dottyLibrary (implicit mode : Mode ): Project = mode match {
1415
1442
case NonBootstrapped => `scala3-library`
1416
1443
case Bootstrapped => `scala3-library-bootstrapped`
0 commit comments