Skip to content

Commit d6d0727

Browse files
authored
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.
1 parent fcf1e41 commit d6d0727

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

qa/build.gradle

+14
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@ subprojects { Project subproj ->
55
subproj.tasks.withType(RestIntegTestTask) {
66
subproj.extensions.configure("${it.name}Cluster") { cluster ->
77
cluster.distribution = System.getProperty('tests.distribution', 'oss-zip')
8+
if (cluster.distribution == 'zip') {
9+
/*
10+
* Add Elastic's repositories so we can resolve older versions of the
11+
* default distribution. Those aren't in maven central.
12+
*/
13+
repositories {
14+
maven {
15+
url "https://artifacts.elastic.co/maven"
16+
}
17+
maven {
18+
url "https://snapshots.elastic.co/maven"
19+
}
20+
}
21+
}
822
}
923
}
1024
}

0 commit comments

Comments
 (0)