Skip to content

Commit 8c5f03b

Browse files
committed
chore: enable the copy plugin in scala3-library
1 parent e30f6d9 commit 8c5f03b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

project/Build.scala

+5
Original file line numberDiff line numberDiff line change
@@ -1107,6 +1107,10 @@ object Build {
11071107

11081108
// Settings shared between scala3-library, scala3-library-bootstrapped and scala3-library-bootstrappedJS
11091109
lazy val dottyLibrarySettings = Seq(
1110+
library := "org.scala-lang" % "scala-library" % "2.13.16",
1111+
libraryDependencies += library.value, // TODO: We should not require a dependency to the scala2's stdlib
1112+
jarExtractTarget := new File((Compile / target).value + "/scala-3.6.3-RC2/classes"),
1113+
//(Compile / compile) := (Compile / compile).dependsOn(copyJarContent).value,
11101114
(Compile / scalacOptions) ++= Seq(
11111115
// Needed so that the library sources are visible when `dotty.tools.dotc.core.Definitions#init` is called
11121116
"-sourcepath", (Compile / sourceDirectories).value.map(_.getAbsolutePath).distinct.mkString(File.pathSeparator),
@@ -2420,6 +2424,7 @@ object Build {
24202424
def asDottyLibrary(implicit mode: Mode): Project = {
24212425
val base =
24222426
project.withCommonSettings.
2427+
enablePlugins(BuildStdLib).
24232428
settings(versionScheme := Some("semver-spec")).
24242429
settings(dottyLibrarySettings)
24252430
if (mode == Bootstrapped) {

0 commit comments

Comments
 (0)