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 authored Nov 6, 2018
1 parent 17b7d2e commit 366f79c
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 @@ -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"
Expand Down

0 comments on commit 366f79c

Please sign in to comment.