Skip to content

Commit

Permalink
QA: Fix resolution of default distribution (#31351)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nik9000 committed Jun 14, 2018
1 parent d928cf4 commit af2b634
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions qa/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
}
}
}

0 comments on commit af2b634

Please sign in to comment.