Skip to content

Commit a9a9598

Browse files
authored
Require Gradle 4.9 as minimum version (#32200)
Do the check in the build plugin as well to be more informative to users of build-tools. We use APIs specific to Gradle 4.9 so earlier will not work.
1 parent 6f2b7dc commit a9a9598

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

buildSrc/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ plugins {
2525

2626
group = 'org.elasticsearch.gradle'
2727

28-
if (GradleVersion.current() < GradleVersion.version('3.3')) {
29-
throw new GradleException('Gradle 3.3+ is required to build elasticsearch')
28+
if (GradleVersion.current() < GradleVersion.version('4.9')) {
29+
throw new GradleException('Gradle 4.9+ is required to build elasticsearch')
3030
}
3131

3232
if (JavaVersion.current() < JavaVersion.VERSION_1_8) {

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

+3
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ class BuildPlugin implements Plugin<Project> {
6767
+ 'elasticearch.standalone-rest-test, and elasticsearch.build '
6868
+ 'are mutually exclusive')
6969
}
70+
if (GradleVersion.current() < GradleVersion.version('4.9')) {
71+
throw new GradleException('Gradle 4.9+ is required to use elasticsearch.build plugin')
72+
}
7073
project.pluginManager.apply('java')
7174
project.pluginManager.apply('carrotsearch.randomized-testing')
7275
// these plugins add lots of info to our jars

0 commit comments

Comments
 (0)