Skip to content

Commit 2db9f89

Browse files
committed
choose an sbt-osgi version according to JVM version
since no single version works on both Java 6 and 9
1 parent f3f3e70 commit 2db9f89

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

project/plugins.sbt

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
addSbtPlugin("org.scala-lang.modules" % "sbt-scala-module" % "1.0.14")
22

3-
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.22")
3+
if (System.getProperty("java.version").startsWith("1."))
4+
Seq()
5+
else
6+
// override to version that works on Java 9,
7+
// see https://github.com/scala/sbt-scala-module/issues/35
8+
Seq(addSbtPlugin("com.typesafe.sbt" % "sbt-osgi" % "0.9.3"))
9+
10+
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.23")

0 commit comments

Comments
 (0)