Skip to content

Commit 95defa5

Browse files
committed
Add support for Gradle 4.3 (#27249)
Closes #26840 Related to #27087 Backport of #27249 in 5.6 branch
1 parent 4e07c3a commit 95defa5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,10 @@ class BuildPlugin implements Plugin<Project> {
130130
throw new GradleException("${minGradle} or above is required to build elasticsearch")
131131
}
132132

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

138139
// enforce Java version

0 commit comments

Comments
 (0)