Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for Java 17 toolchain and fail if not found #6303

Merged
merged 2 commits into from
Mar 21, 2024
Merged
Changes from 1 commit
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
4 changes: 2 additions & 2 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ plugins {
id("com.diffplug.spotless") version "6.25.0"
}

if (!JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_17)) {
if (JavaVersion.current() != JavaVersion.VERSION_17) {
jack-berg marked this conversation as resolved.
Show resolved Hide resolved
throw GradleException(
"JDK 17 or higher is required to build. " +
"JDK 17 is required to build. " +
"One option is to download it from https://adoptium.net/. If you believe you already " +
"have it, please check that the JAVA_HOME environment variable is pointing at the " +
"JDK 17 installation.",
Expand Down
Loading