Skip to content

Commit

Permalink
test JDK23
Browse files Browse the repository at this point in the history
  • Loading branch information
bjaglin committed Sep 23, 2024
1 parent dd28aba commit bdaaa41
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu"]
jvm: ["8", "11", "17", "21", "22"]
jvm: ["8", "11", "17", "21", "23"]
include:
- os: windows
jvm: 21
Expand Down
5 changes: 5 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ lazy val cli = projectMatrix
jgit,
commonText
),
dependencyOverrides ++= {
// force usage of the latest scala2 library to get compatibility with latest JDK
if (isScala3.value) Seq("org.scala-lang" % "scala-library" % scala213)
else Seq()
},
libraryDependencies ++= {
if (isScala3.value) Seq()
else
Expand Down
4 changes: 2 additions & 2 deletions project/ScalafixBuild.scala
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ object ScalafixBuild extends AutoPlugin with GhpagesKeys {
previousPatchVersions
.map { patch => s"$binaryVersion.$patch" }
.filterNot { v =>
System.getProperty("java.version").startsWith("22") &&
Seq("2.12.18").contains(v)
System.getProperty("java.version").startsWith("23") &&
Seq("2.12.18", "2.12.19", "2.13.13", "2.13.14").contains(v)
}
}

Expand Down

0 comments on commit bdaaa41

Please sign in to comment.