Change extra plugins to x-plugins directory instead of extra-plugin- prefix
This commit is contained in:
parent
5a62282150
commit
113a026e1f
|
@ -65,18 +65,18 @@ void addSubProjects(String path, File dir) {
|
||||||
if (new File(dir, 'build.gradle').exists() == false) return;
|
if (new File(dir, 'build.gradle').exists() == false) return;
|
||||||
|
|
||||||
include path
|
include path
|
||||||
project(path).projectDir = dir
|
|
||||||
|
|
||||||
for (File subdir : dir.listFiles()) {
|
for (File subdir : dir.listFiles()) {
|
||||||
addSubProjects("${path}:${subdir.name}", subdir)
|
addSubProjects("${path}:${subdir.name}", subdir)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// look for sibling projects with the prefix "extra-plugin-"
|
// look for extra plugins for elasticsearch
|
||||||
File siblings = rootProject.projectDir.parentFile
|
File xplugins = new File(rootProject.projectDir.parentFile, 'x-plugins')
|
||||||
for (File extraPluginDir : siblings.listFiles()) {
|
if (xplugins.exists()) {
|
||||||
if (extraPluginDir.name.startsWith('extra-plugin-') == false) continue;
|
include ':x-plugins'
|
||||||
String path = ":${extraPluginDir.name.substring('extra-plugin-'.size())}"
|
project(':x-plugins').projectDir = xplugins
|
||||||
addSubProjects(path, extraPluginDir)
|
for (File extraPluginDir : xplugins.listFiles()) {
|
||||||
|
addSubProjects(':x-plugins', extraPluginDir)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue