OpenSearch/buildSrc/settings.gradle
Ryan Ernst 2f4dca744f Build: Change x-plugins setup with elasticsearch to a sibling directory
This change is the x-plugins side of elastic/elasticsearchelastic/elasticsearch#14952. It
now requires x-plugins to be checked out as a sibling of elasticsearch
called extra-plugin-x-plugins.

Original commit: elastic/x-pack-elasticsearch@f69b167407
2015-11-23 14:20:48 -08:00

7 lines
280 B
Groovy

File elasticsearchDir = new File(settingsDir, '../../elasticsearch')
if (elasticsearchDir.exists() == false) {
throw new GradleException('Elasticsearch must be checked out as a sibling directory of x-plugins')
}
project(':').projectDir = new File(elasticsearchDir, 'buildSrc')