From 781bb8efe527ceb865f314aa9f81f5016cdad2a3 Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Wed, 1 Aug 2018 13:48:13 -0700 Subject: [PATCH] Build: Add elastic maven to repos used by BuildPlugin (#32549) 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 702d0f4020e..f6c6d5d7fd7 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