Skip to content

Commit de65790

Browse files
dadoonetjasontedor
authored andcommitted
Add support for Gradle 4.3 (#27249)
Closes #26840 Related to #27087
1 parent f2e381f commit de65790

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
@@ -131,9 +131,10 @@ class BuildPlugin implements Plugin<Project> {
131131
throw new GradleException("${minGradle} or above is required to build elasticsearch")
132132
}
133133

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

139140
// enforce Java version

0 commit comments

Comments
 (0)