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