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 @@ -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
You can’t perform that action at this time.
0 commit comments