Skip to content

Commit abad546

Browse files
committed
Fix scala-js#1889: Override the dependency of partest on scala-library.jar.
For some reason, the transitive dependency of scala-partest on scala-library.jar leaks into the classpath used to compile the partests. Since scala-partest 1.0.9 depends on scala-library 2.11.6, that version overrides the scala-library for the current Scala version when testing on 2.11.5 and earlier. This causes wrong warnings to be reported, and the check files are not happy. This commit fixes this problem by overriding transitive dependencies and forcing scala-library with the version we're testing.
1 parent 9ec8245 commit abad546

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

project/Build.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,6 +1384,9 @@ object Build extends sbt.Build {
13841384
fork in Test := true,
13851385
javaOptions in Test += "-Xmx1G",
13861386

1387+
// Override the dependency of partest - see #1889
1388+
dependencyOverrides += "org.scala-lang" % "scala-library" % scalaVersion.value % "test",
1389+
13871390
testFrameworks ++= {
13881391
if (shouldPartest.value)
13891392
Seq(new TestFramework("scala.tools.partest.scalajs.Framework"))

0 commit comments

Comments
 (0)