Skip to content

Commit 46ebf43

Browse files
committed
work around weird Scala.js Scaladoc thing, shrug
1 parent 04e8767 commit 46ebf43

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

build.sbt

+9-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ lazy val parserCombinators = crossProject(JVMPlatform, JSPlatform, NativePlatfor
1111
name := "scala-parser-combinators",
1212
scalaModuleMimaPreviousVersion := None, // until we publish 1.2.0
1313

14+
libraryDependencies += "junit" % "junit" % "4.13.1" % Test,
15+
libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % Test,
16+
1417
apiMappings ++= scalaInstance.value.libraryJars.collect {
1518
case file if file.getName.startsWith("scala-library") && file.getName.endsWith(".jar") =>
1619
file -> url(s"http://www.scala-lang.org/api/${scalaVersion.value}/")
@@ -67,11 +70,15 @@ lazy val parserCombinators = crossProject(JVMPlatform, JSPlatform, NativePlatfor
6770
.jvmSettings(
6871
ScalaModulePlugin.scalaModuleOsgiSettings,
6972
OsgiKeys.exportPackage := Seq(s"scala.util.parsing.*;version=${version.value}"),
70-
libraryDependencies += "junit" % "junit" % "4.13.1" % Test,
71-
libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % Test
7273
)
7374
.jsSettings(
7475
crossScalaVersions -= "0.27.0-RC1",
76+
// mystified why https://github.com/scala-js/scala-js/issues/635 would be rearing its head,
77+
// but only on sbt 1.4 + 2.13 and only in Test config?! WEIRD
78+
Test / doc / scalacOptions ++= (CrossVersion.partialVersion(scalaVersion.value) match {
79+
case Some((2, 13)) => Seq("-Wconf:msg=dropping dependency on node with no phase object*:i")
80+
case _ => Seq()
81+
}),
7582
// Scala.js cannot run forked tests
7683
Test / fork := false
7784
)

0 commit comments

Comments
 (0)