Skip to content

Commit

Permalink
Check for java 11 in buildSrc (#35260)
Browse files Browse the repository at this point in the history
  • Loading branch information
alpar-t committed Nov 6, 2018
1 parent 45e16b5 commit 7d57239
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,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"
Expand Down

0 comments on commit 7d57239

Please sign in to comment.