Skip to content

Commit 499b52f

Browse files
GitLab CI: replace JDK 16 with the latest LTS JDK 17.
1 parent 188c419 commit 499b52f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.gitlab-ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,12 @@ test-jdk-8:
9898
variables:
9999
TEST_JDK: 8
100100

101-
test-jdk-16:
101+
# JDK 17 is the latest LTS release.
102+
test-jdk-17:
102103
extends: .test-asan-template
103104
needs: ["test-jdk-8"]
104105
variables:
105-
TEST_JDK: 16
106+
TEST_JDK: 17
106107

107108
test-jdk-x86:
108109
extends: .test-template

tests/objectbox-java-test/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ test {
6565
println("Will run tests with $javaExecutablePath")
6666
executable = javaExecutablePath
6767
} else if (System.getenv("TEST_JDK") != null) {
68-
// to run tests on a different JDK
68+
// To run tests on a different JDK, uses Gradle toolchains API (https://docs.gradle.org/current/userguide/toolchains.html)
6969
def sdkVersionInt = System.getenv("TEST_JDK") as Integer
7070
println("Will run tests with JDK $sdkVersionInt")
7171
javaLauncher.set(javaToolchains.launcherFor {

0 commit comments

Comments
 (0)