We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26e8500 commit 7428f41Copy full SHA for 7428f41
project/BuildSettings.scala
@@ -46,11 +46,19 @@ object BuildSettings {
46
}), // Stop these being errors, they are fine.
47
Test / scalacOptions ++=
48
List(
49
- "-Wnonunit-statement",
50
"-Xlint:unused",
51
"-Wconf:msg=unused value of type.*:s",
52
"-Wconf:cat=unused:s"
53
- ),
+ ) ++ (CrossVersion.partialVersion(scalaVersion.value) match {
+ case Some((2, n)) if n >= 13 =>
54
+ List(
55
+ "-Wnonunit-statement"
56
+ // other scalac options for 2.13+
57
+ )
58
+ case _ =>
59
60
61
+ }),
62
scalacOptions --= {
63
if (sys.env.contains("CI"))
64
Seq.empty
0 commit comments