Skip to content

Commit 911be7e

Browse files
committed
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.
1 parent ffd5c1b commit 911be7e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,10 @@ class BuildPlugin implements Plugin<Project> {
405405
repos.mavenLocal()
406406
}
407407
repos.mavenCentral()
408+
repos.maven {
409+
name "elastic"
410+
url "https://artifacts.elastic.co/maven"
411+
}
408412
String luceneVersion = VersionProperties.lucene
409413
if (luceneVersion.contains('-snapshot')) {
410414
// extract the revision number from the version with a regex matcher

0 commit comments

Comments
 (0)