2018-02-23 11:03:17 -05:00
|
|
|
|
|
|
|
import org.elasticsearch.gradle.test.RestIntegTestTask
|
|
|
|
|
|
|
|
subprojects { Project subproj ->
|
|
|
|
subproj.tasks.withType(RestIntegTestTask) {
|
|
|
|
subproj.extensions.configure("${it.name}Cluster") { cluster ->
|
2019-01-21 15:37:17 -05:00
|
|
|
cluster.distribution = System.getProperty('tests.distribution', 'oss')
|
|
|
|
if (cluster.distribution == 'default') {
|
2018-06-14 18:25:47 -04:00
|
|
|
/*
|
|
|
|
* 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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-02-23 11:03:17 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|