From 38a18db81e860fb134d7342c4a80dc1290e0c649 Mon Sep 17 00:00:00 2001 From: Boaz Leskes Date: Tue, 21 Mar 2017 11:20:04 +0100 Subject: [PATCH] Revert "Revert "Build: Upgrade min gradle to 3.3 (#23544)"" This reverts commit f926a717eda34fa188219597fbb7502d930a0f25. --- CONTRIBUTING.md | 4 ++-- README.textile | 2 +- buildSrc/build.gradle | 4 ++-- .../main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 65ec599b551..8775e1464d0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -88,8 +88,8 @@ Contributing to the Elasticsearch codebase **Repository:** [https://github.com/elastic/elasticsearch](https://github.com/elastic/elasticsearch) Make sure you have [Gradle](http://gradle.org) installed, as -Elasticsearch uses it as its build system. Gradle must be version 2.13 _exactly_ in -order to build successfully. +Elasticsearch uses it as its build system. Gradle must be at least +version 3.3 in order to build successfully. Eclipse users can automatically configure their IDE: `gradle eclipse` then `File: Import: Existing Projects into Workspace`. Select the diff --git a/README.textile b/README.textile index 5bc5b7f2505..9c2b2c5d91e 100644 --- a/README.textile +++ b/README.textile @@ -200,7 +200,7 @@ We have just covered a very small portion of what Elasticsearch is all about. Fo h3. Building from Source -Elasticsearch uses "Gradle":https://gradle.org for its build system. You'll need to have version 2.13 of Gradle installed. +Elasticsearch uses "Gradle":https://gradle.org for its build system. You'll need to have at least version 3.3 of Gradle installed. In order to create a distribution, simply run the @gradle assemble@ command in the cloned directory. diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle index fcb504b83ce..79575897ca6 100644 --- a/buildSrc/build.gradle +++ b/buildSrc/build.gradle @@ -23,8 +23,8 @@ apply plugin: 'groovy' group = 'org.elasticsearch.gradle' -if (GradleVersion.current() < GradleVersion.version('2.13')) { - throw new GradleException('Gradle 2.13+ is required to build elasticsearch') +if (GradleVersion.current() < GradleVersion.version('3.3')) { + throw new GradleException('Gradle 3.3+ is required to build elasticsearch') } if (JavaVersion.current() < JavaVersion.VERSION_1_8) { diff --git a/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy b/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy index 011ac94cf2e..ad1445759a1 100644 --- a/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy +++ b/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy @@ -122,7 +122,7 @@ class BuildPlugin implements Plugin { } // enforce gradle version - GradleVersion minGradle = GradleVersion.version('2.13') + GradleVersion minGradle = GradleVersion.version('3.3') if (GradleVersion.current() < minGradle) { throw new GradleException("${minGradle} or above is required to build elasticsearch") }