Check for java 11 in buildSrc (#35260)
This commit is contained in:
parent
17b7d2efcb
commit
366f79cef2
|
@ -65,8 +65,8 @@ processResources {
|
||||||
* Java version *
|
* Java version *
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
if (JavaVersion.current() < JavaVersion.VERSION_1_10) {
|
if (JavaVersion.current() < JavaVersion.VERSION_11) {
|
||||||
throw new GradleException('At least Java 10 is required to build elasticsearch gradle tools')
|
throw new GradleException('At least Java 11 is required to build elasticsearch gradle tools')
|
||||||
}
|
}
|
||||||
// Gradle 4.10 does not support setting this to 11 yet
|
// Gradle 4.10 does not support setting this to 11 yet
|
||||||
targetCompatibility = "10"
|
targetCompatibility = "10"
|
||||||
|
|
Loading…
Reference in New Issue