From 816c935d9eb1308a490fc21199fdc15e068ca44c Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Wed, 1 Aug 2018 08:16:09 -0700 Subject: [PATCH] Build: Add elastic maven to repos used by BuildPlugin This commit adds the elastic repo, alongside maven central, to any plugin using BuildPlugin. This is necessary now because the default distribution, which the test framework uses by default, is now only hosted on elastic maven. While inside the elasticsearch build this does not matter, those that build external plugins with our build-tools could have tests fail to find the distribution dependency. --- .../main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy b/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy index 5a962a5138b5f..3149ed9b4b169 100644 --- a/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy +++ b/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy @@ -405,6 +405,10 @@ class BuildPlugin implements Plugin { repos.mavenLocal() } repos.mavenCentral() + repos.maven { + name "elastic" + url "https://artifacts.elastic.co/maven" + } String luceneVersion = VersionProperties.lucene if (luceneVersion.contains('-snapshot')) { // extract the revision number from the version with a regex matcher