Skip to content

Commit

Permalink
chore: enable the copy plugin in scala3-library
Browse files Browse the repository at this point in the history
  • Loading branch information
hamzaremmal committed Jan 17, 2025
1 parent 6c60cae commit 541a49a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1107,6 +1107,10 @@ object Build {

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

0 comments on commit 541a49a

Please sign in to comment.