From d6d0727aac0159a926b80ecce95913b928834267 Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Thu, 14 Jun 2018 18:25:47 -0400 Subject: [PATCH] QA: Fix resolution of default distribution (#31351) If you run `./gradlew -p qa bwcTest -Dtests.distribution=zip` then we need to resolve older versions of the default distribution. Since those aren't available in maven central, we need add the elastic maven repo to the project. --- qa/build.gradle | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/qa/build.gradle b/qa/build.gradle index 709c309359ecf..0336b947d06aa 100644 --- a/qa/build.gradle +++ b/qa/build.gradle @@ -5,6 +5,20 @@ subprojects { Project subproj -> subproj.tasks.withType(RestIntegTestTask) { subproj.extensions.configure("${it.name}Cluster") { cluster -> cluster.distribution = System.getProperty('tests.distribution', 'oss-zip') + if (cluster.distribution == 'zip') { + /* + * Add Elastic's repositories so we can resolve older versions of the + * default distribution. Those aren't in maven central. + */ + repositories { + maven { + url "https://artifacts.elastic.co/maven" + } + maven { + url "https://snapshots.elastic.co/maven" + } + } + } } } }