Skip to content

Commit d99107e

Browse files
authored
Merge pull request #131 from SethTisue/jdk12
ignore JDK 12 only warnings when compiling build definition
2 parents 139f184 + e82d152 commit d99107e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

project/plugins.sbt

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1-
scalacOptions += "-Xfatal-warnings"
1+
scalacOptions ++= (sys.props("java.specification.version") match {
2+
// work around weird dbuild thing for JDK 12 community build; see
3+
// https://github.com/scala/community-builds/issues/862#issuecomment-464227096
4+
case "12" => Seq()
5+
case _ => Seq("-Xfatal-warnings")
6+
})
27

38
addSbtPlugin("org.scala-lang.modules" % "sbt-scala-module" % "1.0.14")

0 commit comments

Comments
 (0)