Apache Lucene open-source search software
Disallow EA versions to run Gradle (#14601)
Uwe Schindler96c0184c608d
diff --git a/gradle/validation/check-environment.gradle b/gradle/validation/check-environment.gradleindex 1b0c9821182..1eb00eee625 100644--- a/gradle/validation/check-environment.gradle+++ b/gradle/validation/check-environment.gradle@@ -37,6 +37,11 @@ configure(rootProject) {throw new GradleException("At least Java ${minJavaVersion} is required, you are running Java ${currentJavaVersion} "+ "[${System.getProperty('java.vm.name')} ${System.getProperty('java.vm.version')}]")}+ if (Runtime.version().pre().isPresent()) {+ throw new GradleException("You are running Gradle with an EA version of Java, this is not supported! "+ + "To test Lucene compatibility with EA or prerelease versions, use the RUNTIME_JAVA_HOME environment variable. Detected Java version: "+ + "[${System.getProperty('java.vm.name')} ${System.getProperty('java.vm.version')}]")+ }// If we're regenerating the wrapper, skip the check.if (!gradle.startParameter.taskNames.contains("wrapper")) {