From 9bbf3fc1d93d70facc9cee08b3f9de1dba7a18b0 Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Sat, 18 Jun 2016 10:27:48 -0700 Subject: [PATCH] Build: Require exactly gradle 2.13 see #18935 --- buildSrc/build.gradle | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle index a5a9b4209ba..47396096ab8 100644 --- a/buildSrc/build.gradle +++ b/buildSrc/build.gradle @@ -23,6 +23,16 @@ apply plugin: 'groovy' group = 'org.elasticsearch.gradle' +// TODO: remove this when upgrading to a version that supports ProgressLogger +// gradle 2.14 made internal apis unavailable to plugins, and gradle considered +// ProgressLogger to be an internal api. Until this is made available again, +// we can't upgrade without losing our nice progress logging +// NOTE that this check duplicates that in BuildPlugin, but we need to check +// early here before trying to compile the broken classes in buildSrc +if (GradleVersion.current() != GradleVersion.version('2.13')) { + throw new GradleException('Gradle 2.13 is required to build elasticsearch') +} + if (project == rootProject) { // change the build dir used during build init, so that doing a clean // won't wipe out the buildscript jar