Skip to content

Commit

Permalink
Enable unit testing of Java 20 and 21
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjameshamilton committed Oct 12, 2023
1 parent 76cf000 commit 7c153f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jar {
// Early access automatic downloads are not yet supported:
// https://github.com/gradle/gradle/issues/14814
// But it will work if e.g. Java N-ea is pre-installed
def javaVersionsForTest = 9..19
def javaVersionsForTest = 9..21

test {
useJUnitPlatform()
Expand All @@ -65,7 +65,7 @@ task testAllJavaVersions() { testAllTask ->
ignoreFailures = true

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

testAllTask.dependsOn(it)

Expand Down

0 comments on commit 7c153f8

Please sign in to comment.