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
  • Loading branch information
dadoonet authored Nov 3, 2017
1 parent 20e8005 commit 0635778
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 0635778

Please sign in to comment.