mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-05 20:48:22 +00:00
d6d0727aac
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.
25 lines
711 B
Groovy
25 lines
711 B
Groovy
|
|
import org.elasticsearch.gradle.test.RestIntegTestTask
|
|
|
|
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"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|