From e82d1527746b0d49af1239c7cb7a67c58bb2f4d3 Mon Sep 17 00:00:00 2001 From: Seth Tisue Date: Fri, 15 Feb 2019 14:41:52 -0800 Subject: [PATCH] ignore JDK 12 only warnings when compiling build definition --- project/plugins.sbt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/project/plugins.sbt b/project/plugins.sbt index d283e84..1e7f7c0 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,3 +1,8 @@ -scalacOptions += "-Xfatal-warnings" +scalacOptions ++= (sys.props("java.specification.version") match { + // work around weird dbuild thing for JDK 12 community build; see + // https://github.com/scala/community-builds/issues/862#issuecomment-464227096 + case "12" => Seq() + case _ => Seq("-Xfatal-warnings") +}) addSbtPlugin("org.scala-lang.modules" % "sbt-scala-module" % "1.0.14")