Skip to content

Commit 976dd12

Browse files
committed
Revert "Disable deprecation warnings for Scala 2.11"
This reverts commit f9f283f.
1 parent f9f283f commit 976dd12

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

project/Lib.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,17 @@ object Lib {
1111
.configure(sourceMapsToGithub)
1212
.settings(
1313
scalacOptions ++= Seq(
14+
"-deprecation",
1415
"-feature",
1516
),
1617
scalacOptions ++= (if (!inCI) Seq.empty else Seq(
1718
"-Xfatal-warnings",
1819
)),
1920
scalacOptions ++= (CrossVersion.partialVersion(scalaVersion.value) match {
2021
case Some((2, 11)) => "-Ywarn-unused-import" :: 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
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
2425
}),
2526
testOptions += Tests.Argument(TestFramework("com.novocode.junit.JUnitFramework"), "-v"),
2627
)

0 commit comments

Comments
 (0)