diff --git a/build.gradle b/build.gradle index 55fd7c3..d9064c7 100644 --- a/build.gradle +++ b/build.gradle @@ -27,8 +27,8 @@ plugins { id "org.ajoberstar.git-publish" version "4.1.1" } -if(JavaVersion.current() != JavaVersion.VERSION_11) { - throw new GradleException("Please use Java 11 to execute this Gradle build") +if(JavaVersion.VERSION_11.isCompatibleWith(JavaVersion.current())) { + throw new GradleException("Please use Java 11 or above to execute this Gradle build") } project.version.with {