Skip to content

Commit 7c153f8

Browse files
Enable unit testing of Java 20 and 21
1 parent 76cf000 commit 7c153f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jar {
5050
// Early access automatic downloads are not yet supported:
5151
// https://github.com/gradle/gradle/issues/14814
5252
// But it will work if e.g. Java N-ea is pre-installed
53-
def javaVersionsForTest = 9..19
53+
def javaVersionsForTest = 9..21
5454

5555
test {
5656
useJUnitPlatform()
@@ -65,7 +65,7 @@ task testAllJavaVersions() { testAllTask ->
6565
ignoreFailures = true
6666

6767
// The version of bytebuddy used by mockk only supports Java 20 experimentally so far
68-
if (version == 20) systemProperty 'net.bytebuddy.experimental', true
68+
if (version >= 20) systemProperty 'net.bytebuddy.experimental', true
6969

7070
testAllTask.dependsOn(it)
7171

0 commit comments

Comments
 (0)