@@ -959,7 +959,9 @@ object Build {
959
959
}
960
960
961
961
// Settings shared between scala3-library, scala3-library-bootstrapped and scala3-library-bootstrappedJS
962
- lazy val dottyLibrarySettings = Seq (
962
+ def dottyLibrarySettings (implicit mode : Mode ) = Seq (
963
+ versionScheme := Some (" semver-spec" ),
964
+ libraryDependencies += " org.scala-lang" % " scala-library" % stdlibVersion,
963
965
(Compile / scalacOptions) ++= Seq (
964
966
// Needed so that the library sources are visible when `dotty.tools.dotc.core.Definitions#init` is called
965
967
" -sourcepath" , (Compile / sourceDirectories).value.map(_.getAbsolutePath).distinct.mkString(File .pathSeparator),
@@ -2043,16 +2045,9 @@ object Build {
2043
2045
settings(dottyCompilerSettings)
2044
2046
2045
2047
def asDottyLibrary (implicit mode : Mode ): Project = {
2046
- val base =
2047
- project.withCommonSettings.
2048
- settings(
2049
- versionScheme := Some (" semver-spec" ),
2050
- libraryDependencies += " org.scala-lang" % " scala-library" % stdlibVersion,
2051
- // Make sure we do not refer to experimental features outside an experimental scope.
2052
- // In other words, disable NIGHTLY/SNAPSHOT experimental scope.
2053
- scalacOptions += " -Yno-experimental" ,
2054
- ).
2055
- settings(dottyLibrarySettings)
2048
+ val base = project
2049
+ .withCommonSettings
2050
+ .settings(dottyLibrarySettings)
2056
2051
if (mode == Bootstrapped ) {
2057
2052
base.settings(
2058
2053
(Compile / doc) := {
@@ -2111,6 +2106,7 @@ object Build {
2111
2106
case NonBootstrapped => commonNonBootstrappedSettings
2112
2107
case Bootstrapped => commonBootstrappedSettings
2113
2108
})
2109
+
2114
2110
}
2115
2111
2116
2112
/* Tests TASTy version invariants during NIGHLY, RC or Stable releases */
0 commit comments