diff --git a/build.gradle b/build.gradle index 55fd7c3..9b09145 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.current().isCompatibleWith(JavaVersion.VERSION_11)) { + throw new GradleException("Please use Java 11 or above to execute this Gradle build") } project.version.with {