Skip to content

Commit 0fb0dbe

Browse files
committed
test JDK23
1 parent dd28aba commit 0fb0dbe

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
os: ["ubuntu"]
13-
jvm: ["8", "11", "17", "21", "22"]
13+
jvm: ["8", "11", "17", "21", "23"]
1414
include:
1515
- os: windows
1616
jvm: 21

build.sbt

+5-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,11 @@ lazy val rules = projectMatrix
119119
semanticdbScalacCore,
120120
collectionCompat
121121
)
122-
else Nil
122+
else
123+
Seq(
124+
// force usage of the latest scala2 library to get compatibility with latest JDK
125+
"org.scala-lang" % "scala-library" % scala213
126+
)
123127
},
124128
// companion of `.dependsOn(core)`
125129
// issue reported in https://github.com/sbt/sbt/issues/7405

project/ScalafixBuild.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ object ScalafixBuild extends AutoPlugin with GhpagesKeys {
4848
previousPatchVersions
4949
.map { patch => s"$binaryVersion.$patch" }
5050
.filterNot { v =>
51-
System.getProperty("java.version").startsWith("22") &&
52-
Seq("2.12.18").contains(v)
51+
System.getProperty("java.version").startsWith("23") &&
52+
Seq("2.12.18", "2.12.19", "2.13.13", "2.13.14").contains(v)
5353
}
5454
}
5555

0 commit comments

Comments
 (0)