mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 04:58:50 +00:00
The integ tests currently use the raw zip project name as the distribution type. This commit simplifies this specification to be "default" or "oss". Whether zip or tar is used should be an internal implementation detail of the integ test setup, which can (in the future) be platform specific.
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')
|
|
if (cluster.distribution == 'default') {
|
|
/*
|
|
* 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"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|