File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
buildSrc/src/main/groovy/org/elasticsearch/gradle Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments