Merge pull request #14588 from jasontedor/enforce-java-8
Enforce Java 8 in Gradle builds
This commit is contained in:
commit
97644e3046
|
@ -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!'
|
||||
|
|
Loading…
Reference in New Issue