mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-15 01:16:09 +00:00
* Build: Convert xplugins to use new extra projects setup This change makes the gradle initialization for xplugins look in the correct location for elasticsearch, which is now as a sibling of an elasticsearch-extra directory, with x-plugins as a child of the extra directory. The elasticsearch side of this change is elastic/elasticsearchelastic/elasticsearch#21773. This change will enable renaming x-plugins to x-pack, see elastic/elasticsearch#3643. Original commit: elastic/x-pack-elasticsearch@09398aea5a
11 lines
530 B
Groovy
11 lines
530 B
Groovy
File extrasDir = new File(settingsDir, '../..').getCanonicalFile()
|
|
if (extrasDir.name.endsWith('-extra') == false) {
|
|
throw new GradleException("x-pack must be checked out under an elasticsearch-extra directory, found ${extrasDir.name}")
|
|
}
|
|
File elasticsearchDir = new File(extrasDir.parentFile, extrasDir.name[0..-7])
|
|
if (elasticsearchDir.exists() == false) {
|
|
throw new GradleException("${elasticsearchDir.name} is missing as a sibling to ${extrasDir.name}")
|
|
}
|
|
|
|
project(':').projectDir = new File(elasticsearchDir, 'buildSrc')
|