diff --git a/project/PekkoDisciplinePlugin.scala b/project/PekkoDisciplinePlugin.scala index 1e1f4a94e4..0ffbb5bf12 100644 --- a/project/PekkoDisciplinePlugin.scala +++ b/project/PekkoDisciplinePlugin.scala @@ -74,9 +74,10 @@ object PekkoDisciplinePlugin extends AutoPlugin { "pekko-stream-tests-tck", "pekko-testkit") - lazy val defaultScalaOptions = Def.setting(CrossVersion.partialVersion(scalaVersion.value) match { - case Some((2, 12)) => "-Wconf:cat=unused-nowarn:s,any:e" - case _ => "-Wconf:cat=unused-nowarn:s,cat=other-shadowing:s,any:e" + lazy val defaultScalaOptions = Def.setting(CrossVersion.partialVersion(scalaVersion.value).get match { + case (3, 3) => "-Wconf:cat=unused-nowarn:s,cat=other-shadowing:s,any:e" + case (2, 13) => "-Wconf:any:e,cat=unused-nowarn:s,cat=other-shadowing:s" + case (2, 12) => "-Wconf:cat=unused-nowarn:s,any:e" }) lazy val nowarnSettings = Seq(