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:
He-Pin(kerr) 2024-02-28 12:53:22 +08:00 committed by GitHub
parent dbfdcb678d
commit d884540c92
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 13 additions and 11 deletions

View file

@ -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)

View file

@ -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")