From 256aa413d1e137adcce396c6309871db2c41d530 Mon Sep 17 00:00:00 2001 From: Seth Tisue Date: Fri, 8 Jun 2018 16:41:09 -0700 Subject: [PATCH] make build work on Java 9 for the Scala 2.12 community build on Java 9, not otherwise essential --- project/plugins.sbt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/project/plugins.sbt b/project/plugins.sbt index a52be37f..0cedb14a 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,3 +1,10 @@ +if (System.getProperty("java.version").startsWith("1.")) + Seq() +else + // override to version that works on Java 9, + // see https://github.com/scala/sbt-scala-module/issues/35 + Seq(addSbtPlugin("com.typesafe.sbt" % "sbt-osgi" % "0.9.3")) + addSbtPlugin("org.scala-lang.modules" % "sbt-scala-module" % "1.0.14") addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.23")