mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-10 06:55:32 +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
8 lines
409 B
Groovy
8 lines
409 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])
|
|
project(':').projectDir = elasticsearchDir
|
|
apply from: "${elasticsearchDir}/settings.gradle"
|