We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da9eaba commit 4ff3b83Copy full SHA for 4ff3b83
project/BuildSettings.scala
@@ -47,11 +47,11 @@ object BuildSettings {
47
Dependencies.scalafixScaluzzi,
48
Dependencies.scalafixOrganizeImports
49
),
50
- scalacOptions ++= {
+ scalacOptions := {
51
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
+ case Some((3, _)) => scalacOptions.value ++ Seq("-source:future", "-language:adhocExtensions")
+ case Some((2, _)) => scalacOptions.value.filterNot(_ == "-Xfatal-warnings") ++ Seq("-Xsource:3")
+ case _ => scalacOptions.value
55
}
56
},
57
Compile / doc / scalacOptions -= "-Xfatal-warnings",
0 commit comments