From 0cb6efc251e7593b42016255a949b8c4065c47af Mon Sep 17 00:00:00 2001 From: Alpar Torok Date: Mon, 5 Nov 2018 17:43:34 +0200 Subject: [PATCH] Check for java 11 in buildSrc --- buildSrc/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle index f3735c269bab9..23752bbb54313 100644 --- a/buildSrc/build.gradle +++ b/buildSrc/build.gradle @@ -61,8 +61,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"