Skip to content

Commit

Permalink
SBT: treat warnings as errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbellew committed Dec 9, 2024
1 parent acc28a4 commit 06b0188
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,15 @@ lazy val sharedSettings = Def.settings(
else "-Ywarn-unused-import"
},
scalacOptions += "-deprecation",
scalacOptions += "-Xfatal-warnings",
scalacOptions ++= {
if (isScala213.value) "-Wconf:cat=deprecation:is" :: Nil
else if (isScala3.value) "-Wconf:cat=deprecation:silent" :: Nil
else Nil
},
scalacOptions ++= {
if (isScala3.value) Nil else "-Wconf:cat=feature:is" :: Nil
},
mimaBinaryIssueFilters += languageAgnosticCompatibilityPolicy,
crossScalaVersions := ScalaVersions,
scalaVersion := scala213,
Expand Down

0 comments on commit 06b0188

Please sign in to comment.