Skip to content

Commit f9f283f

Browse files
committed
Disable deprecation warnings for Scala 2.11
1 parent f844b97 commit f9f283f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

project/Lib.scala

+3-4
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,16 @@ object Lib {
1111
.configure(sourceMapsToGithub)
1212
.settings(
1313
scalacOptions ++= Seq(
14-
"-deprecation",
1514
"-feature",
1615
),
1716
scalacOptions ++= (if (!inCI) Seq.empty else Seq(
1817
"-Xfatal-warnings",
1918
)),
2019
scalacOptions ++= (CrossVersion.partialVersion(scalaVersion.value) match {
2120
case Some((2, 11)) => "-Ywarn-unused-import" :: Nil
22-
case Some((2, 12)) => "-Ywarn-unused:imports,patvars,locals,implicits" :: Nil
23-
case Some((2, 13)) => "-Wunused:imports,patvars,locals,implicits" :: Nil
24-
case _ => Nil
21+
case Some((2, 12)) => "-deprecation" :: "-Ywarn-unused:imports,patvars,locals,implicits" :: Nil
22+
case Some((2, 13)) => "-deprecation" :: "-Wunused:imports,patvars,locals,implicits" :: Nil
23+
case _ => "-deprecation" :: Nil
2524
}),
2625
testOptions += Tests.Argument(TestFramework("com.novocode.junit.JUnitFramework"), "-v"),
2726
)

0 commit comments

Comments
 (0)