Skip to content

Commit

Permalink
chore: Drop Scala 2.12
Browse files Browse the repository at this point in the history
  • Loading branch information
patriknw committed Sep 27, 2023
1 parent 97c04b1 commit a632104
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
6 changes: 2 additions & 4 deletions project/Common.scala
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ object Common extends AutoPlugin {
"-unchecked",
"-deprecation"
)
if (scalaVersion.value == Dependencies.Scala212)
scalacOptionsBase ++: Seq("-Xfuture", "-Xfatal-warnings", "-Xlint", "-Ywarn-dead-code")
else if (scalaVersion.value == Dependencies.Scala213)
if (scalaVersion.value == Dependencies.Scala213)
scalacOptionsBase ++: Seq("-Xlint", "-Ywarn-dead-code")
else
scalacOptionsBase
Expand All @@ -70,7 +68,7 @@ object Common extends AutoPlugin {
else Seq("--release", "8")
),
scalacOptions ++= (
if (isJdk8 || scalaVersion.value == Dependencies.Scala212) Seq.empty
if (isJdk8) Seq.empty
else Seq("--release", "8")
),
doc / javacOptions := Nil,
Expand Down
3 changes: 1 addition & 2 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ import Keys._

object Dependencies {

val Scala212 = "2.12.18"
val Scala213 = "2.13.11"
val Scala3 = "3.3.1"
val CrossScalaVersions = Seq(Scala213, Scala212, Scala3)
val CrossScalaVersions = Seq(Scala213, Scala3)

// Align the versions in integration-test/kubernetes-api-java/pom.xml
val AkkaVersion = "2.8.2"
Expand Down
2 changes: 1 addition & 1 deletion project/project-info.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
project-info {
version: "current"
scala-versions: ["2.11", "2.12"]
scala-versions: ["2.13", "3.3"]
shared-info {
jdk-versions: ["Adopt OpenJDK 8 with Hotspot", "Adopt OpenJDK 11 with Hotspot"]
snapshots: {
Expand Down

0 comments on commit a632104

Please sign in to comment.