Skip to content

Commit 43e8873

Browse files
committed
Use a fixed 2.13.13 version for sbt scripted tests using Scala.js
1 parent 6f2dba5 commit 43e8873

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

project/Build.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1708,6 +1708,8 @@ object Build {
17081708
"-Dplugin.version=" + version.value,
17091709
"-Dplugin.scalaVersion=" + dottyVersion,
17101710
"-Dplugin.scala2Version=" + stdlibVersion(Bootstrapped),
1711+
// The last version of Scala 2 that's cross-published for Scala.js 1.12 (version used by LTS)
1712+
"-Dplugin.scala2ForJSVersion=2.13.13",
17111713
"-Dplugin.scalaJSVersion=" + scalaJSVersion,
17121714
"-Dsbt.boot.directory=" + ((ThisBuild / baseDirectory).value / ".sbt-scripted").getAbsolutePath // Workaround sbt/sbt#3469
17131715
),

sbt-test/scala2-compat/erasure-scalajs/build.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
lazy val scala2Lib = project.in(file("scala2Lib"))
22
.enablePlugins(ScalaJSPlugin)
33
.settings(
4-
scalaVersion := sys.props("plugin.scala2Version")
4+
scalaVersion := sys.props("plugin.scala2ForJSVersion")
55
)
66

77
lazy val dottyApp = project.in(file("dottyApp"))

0 commit comments

Comments
 (0)