Skip to content

Commit

Permalink
Enforce and clarify that Java17 is required
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
  • Loading branch information
bogdandrutu committed Mar 18, 2024
1 parent b2298ab commit 8ca11c3
Showing 1 changed file with 2 additions and 2 deletions.
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) {
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

0 comments on commit 8ca11c3

Please sign in to comment.