Skip to content

Commit e82d152

Browse files
committed
ignore JDK 12 only warnings when compiling build definition
1 parent 139f184 commit e82d152

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)