Skip to content

Commit 709b621

Browse files
JACOCO-66 Build and run unit tests with Java 21
1 parent ed0c30e commit 709b621

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ if (version.endsWith('-SNAPSHOT') && ext.buildNumber != null) {
2121
version = version.replace('-SNAPSHOT', versionSuffix)
2222
}
2323

24+
java {
25+
toolchain {
26+
languageVersion = JavaLanguageVersion.of(21)
27+
}
28+
}
29+
2430
compileJava {
2531
// Setting the compatibility to Java 17
2632
options.release = 17

mise.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[tools]
2-
java = "17.0"
2+
java = "21"
33
gradle = "9.2"

0 commit comments

Comments
 (0)