Skip to content

Commit 4ff3b83

Browse files
committed
ignore compiler warnings for scala 2.12
1 parent da9eaba commit 4ff3b83

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

project/BuildSettings.scala

+4-4
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ object BuildSettings {
4747
Dependencies.scalafixScaluzzi,
4848
Dependencies.scalafixOrganizeImports
4949
),
50-
scalacOptions ++= {
50+
scalacOptions := {
5151
CrossVersion.partialVersion(scalaVersion.value) match {
52-
case Some((3, _)) => Seq("-source:future", "-language:adhocExtensions")
53-
case Some((2, _)) => Seq("-Xsource:3")
54-
case _ => Seq.empty
52+
case Some((3, _)) => scalacOptions.value ++ Seq("-source:future", "-language:adhocExtensions")
53+
case Some((2, _)) => scalacOptions.value.filterNot(_ == "-Xfatal-warnings") ++ Seq("-Xsource:3")
54+
case _ => scalacOptions.value
5555
}
5656
},
5757
Compile / doc / scalacOptions -= "-Xfatal-warnings",

0 commit comments

Comments
 (0)