Skip to content

Commit

Permalink
Add support for Gradle 4.3 (#27249)
Browse files Browse the repository at this point in the history
Closes #26840
Related to #27087

Backport of #27249 in 6.x branch
  • Loading branch information
dadoonet committed Nov 3, 2017
1 parent 6f425e7 commit 882633f
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,10 @@ class BuildPlugin implements Plugin<Project> {
throw new GradleException("${minGradle} or above is required to build elasticsearch")
}

final GradleVersion maxGradle = GradleVersion.version('4.2')
if (currentGradleVersion >= maxGradle) {
throw new GradleException("${maxGradle} or above is not compatible with the elasticsearch build")
final GradleVersion gradle42 = GradleVersion.version('4.2')
final GradleVersion gradle43 = GradleVersion.version('4.3')
if (currentGradleVersion >= gradle42 && currentGradleVersion < gradle43) {
throw new GradleException("${currentGradleVersion} is not compatible with the elasticsearch build")
}

// enforce Java version
Expand Down

0 comments on commit 882633f

Please sign in to comment.