Skip to content

Commit

Permalink
Build: Add elastic maven to repos used by BuildPlugin (#32549)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rjernst authored Aug 1, 2018
1 parent 5efc2ec commit 781bb8e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,10 @@ class BuildPlugin implements Plugin<Project> {
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
Expand Down

0 comments on commit 781bb8e

Please sign in to comment.