Merge pull request #14588 from jasontedor/enforce-java-8

Enforce Java 8 in Gradle builds
This commit is contained in:
Jason Tedor 2015-11-06 12:33:28 -05:00
commit 97644e3046
1 changed files with 5 additions and 0 deletions

View File

@ -59,6 +59,11 @@ class BuildPlugin implements Plugin<Project> {
throw new GradleException('Gradle 2.6 or above is required to build elasticsearch')
}
// enforce Java version
if (!JavaVersion.current().isJava8Compatible()) {
throw new GradleException('Java 8 or above is required to build Elasticsearch')
}
// Build debugging info
println '======================================='
println 'Elasticsearch Build Hamster says Hello!'