chore: Update Scala to 2.13.13 (#1155)
* chore: Update Scala to 2.13.13 * chore: Remove unused imports * chore: Update Scala version to 2.13.13 in link-validator.conf
This commit is contained in:
parent
dbfdcb678d
commit
d884540c92
4 changed files with 13 additions and 11 deletions
|
|
@ -37,7 +37,7 @@ object Dependencies {
|
|||
val jacksonDatabindVersion = jacksonCoreVersion
|
||||
|
||||
val scala212Version = "2.12.19"
|
||||
val scala213Version = "2.13.12"
|
||||
val scala213Version = "2.13.13"
|
||||
val scala3Version = "3.3.1"
|
||||
val allScalaVersions = Seq(scala213Version, scala212Version, scala3Version)
|
||||
|
||||
|
|
|
|||
|
|
@ -74,16 +74,19 @@ object PekkoDisciplinePlugin extends AutoPlugin {
|
|||
"pekko-stream-tests-tck",
|
||||
"pekko-testkit")
|
||||
|
||||
val defaultScalaOptions = "-Wconf:cat=unused-nowarn:s,any:e"
|
||||
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=lint-named-booleans:s,cat=other-shadowing:s,any:e"
|
||||
})
|
||||
|
||||
lazy val nowarnSettings = Seq(
|
||||
Compile / scalacOptions ++= (
|
||||
if (scalaVersion.value.startsWith("3.")) Nil
|
||||
else Seq(defaultScalaOptions)
|
||||
else Seq(defaultScalaOptions.value)
|
||||
),
|
||||
Test / scalacOptions ++= (
|
||||
if (scalaVersion.value.startsWith("3.")) Nil
|
||||
else Seq(defaultScalaOptions)
|
||||
else Seq(defaultScalaOptions.value)
|
||||
),
|
||||
Compile / doc / scalacOptions := Seq())
|
||||
|
||||
|
|
@ -97,13 +100,13 @@ object PekkoDisciplinePlugin extends AutoPlugin {
|
|||
*/
|
||||
lazy val docs =
|
||||
Seq(
|
||||
Compile / scalacOptions -= defaultScalaOptions,
|
||||
Compile / scalacOptions -= defaultScalaOptions.value,
|
||||
Compile / scalacOptions ++= (
|
||||
if (scalaVersion.value.startsWith("3.")) Nil
|
||||
else Seq("-Wconf:cat=unused:s,cat=deprecation:s,cat=unchecked:s,any:e")
|
||||
),
|
||||
Test / scalacOptions --= Seq("-Xlint", "-unchecked", "-deprecation"),
|
||||
Test / scalacOptions -= defaultScalaOptions,
|
||||
Test / scalacOptions -= defaultScalaOptions.value,
|
||||
Test / scalacOptions ++= (
|
||||
if (scalaVersion.value.startsWith("3.")) Nil
|
||||
else Seq("-Wconf:cat=unused:s,cat=deprecation:s,cat=unchecked:s,any:e")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue