Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

strategy:
matrix:
java: ['17', '21', '25', '26']
java: ['21', '25', '26']
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved

steps:
- uses: actions/checkout@v7
Expand Down
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ cache:
- $HOME/.m2/

jdk:
- openjdk17
- openjdk21
- openjdk25

Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ java {
}

tasks.withType<JavaCompile>().configureEach {
options.release = 17
options.release = 21

// Gradle compiles in a worker process whenever the toolchain above differs
// from the JVM that runs Gradle. That worker does not inherit the
Expand All @@ -100,7 +100,7 @@ tasks.withType<JavaCompile>().configureEach {
// default: it runs Gradle under Java 21 in every job and selects the test JVM by passing
// `-PtestJavaVersion`.
// Override with, for example:
// ./gradlew test -PtestJavaVersion=17
// ./gradlew test -PtestJavaVersion=21
val testJavaVersionProperty = project.findProperty("testJavaVersion")

if (testJavaVersionProperty != null && testJavaVersionProperty.toString().isEmpty()) {
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

checker-framework = "4.2.2"

google-java-format = "1.28.0"
google-java-format = "1.36.1"

jacoco = "0.8.15"

Expand Down
11 changes: 9 additions & 2 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
// No explicit check of the Gradle JVM's version is needed here. Gradle 9 requires a JVM between
// 17 and 26 to run, and reports a clear error on an unsupported JVM.
val minimumJavaVersion = JavaVersion.VERSION_21

if (JavaVersion.current() < minimumJavaVersion) {
throw GradleException(
"This build requires Gradle to run under Java $minimumJavaVersion or later," +
" but Gradle is running under Java ${JavaVersion.current()}" +
" from ${System.getProperty("java.home")}."
)
}

plugins {
// Downloads a JDK if the Java toolchain that build.gradle.kts requests is not installed locally.
Expand Down
Loading