Skip to content
Merged
Changes from all commits
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
5 changes: 5 additions & 0 deletions gradle/validation/check-environment.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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")) {
Expand Down