2015-10-29 11:40:19 -07:00
|
|
|
rootProject.name = 'elasticsearch'
|
|
|
|
|
2015-11-04 22:28:57 -08:00
|
|
|
List projects = [
|
2016-05-06 22:22:38 -07:00
|
|
|
'build-tools',
|
2015-10-29 11:40:19 -07:00
|
|
|
'rest-api-spec',
|
|
|
|
'core',
|
2016-04-29 10:42:03 -04:00
|
|
|
'docs',
|
2016-06-22 13:40:01 -04:00
|
|
|
'client:rest',
|
|
|
|
'client:sniffer',
|
2016-07-18 15:42:24 +02:00
|
|
|
'client:transport',
|
2016-06-22 13:40:01 -04:00
|
|
|
'client:test',
|
2016-08-26 09:05:47 +02:00
|
|
|
'client:client-benchmark-noop-api-plugin',
|
2016-07-26 11:01:22 +02:00
|
|
|
'client:benchmark',
|
2016-06-15 16:48:02 +02:00
|
|
|
'benchmarks',
|
2015-12-03 14:52:51 -08:00
|
|
|
'distribution:integ-test-zip',
|
2015-10-29 11:40:19 -07:00
|
|
|
'distribution:zip',
|
|
|
|
'distribution:tar',
|
|
|
|
'distribution:deb',
|
|
|
|
'distribution:rpm',
|
2015-12-17 16:57:39 -08:00
|
|
|
'test:framework',
|
2015-12-15 20:14:37 -08:00
|
|
|
'test:fixtures:example-fixture',
|
2015-12-20 16:00:37 -05:00
|
|
|
'test:fixtures:hdfs-fixture',
|
2016-02-17 00:32:21 +01:00
|
|
|
'test:logger-usage',
|
2016-05-12 12:39:51 -05:00
|
|
|
'modules:aggs-matrix-stats',
|
2016-05-27 19:37:53 +02:00
|
|
|
'modules:ingest-common',
|
2015-12-03 14:18:26 -08:00
|
|
|
'modules:lang-expression',
|
|
|
|
'modules:lang-groovy',
|
2015-12-08 22:45:21 -05:00
|
|
|
'modules:lang-mustache',
|
2016-02-21 16:50:33 -08:00
|
|
|
'modules:lang-painless',
|
2016-07-14 22:03:14 -04:00
|
|
|
'modules:transport-netty3',
|
2016-07-22 22:26:35 -04:00
|
|
|
'modules:transport-netty4',
|
2016-02-11 16:27:15 -05:00
|
|
|
'modules:reindex',
|
2016-05-20 23:53:51 +02:00
|
|
|
'modules:percolator',
|
2015-10-29 11:40:19 -07:00
|
|
|
'plugins:analysis-icu',
|
|
|
|
'plugins:analysis-kuromoji',
|
|
|
|
'plugins:analysis-phonetic',
|
|
|
|
'plugins:analysis-smartcn',
|
|
|
|
'plugins:analysis-stempel',
|
2016-06-30 14:39:23 +02:00
|
|
|
'plugins:discovery-azure-classic',
|
2015-10-29 11:40:19 -07:00
|
|
|
'plugins:discovery-ec2',
|
|
|
|
'plugins:discovery-gce',
|
2016-01-08 22:44:47 +01:00
|
|
|
'plugins:ingest-geoip',
|
2016-02-09 14:57:05 +01:00
|
|
|
'plugins:ingest-attachment',
|
2016-07-05 09:42:29 +02:00
|
|
|
'plugins:ingest-user-agent',
|
2015-10-29 11:40:19 -07:00
|
|
|
'plugins:lang-javascript',
|
|
|
|
'plugins:lang-python',
|
2015-11-08 02:19:50 -05:00
|
|
|
'plugins:mapper-attachments',
|
2015-10-29 11:40:19 -07:00
|
|
|
'plugins:mapper-murmur3',
|
|
|
|
'plugins:mapper-size',
|
|
|
|
'plugins:repository-azure',
|
2015-09-15 17:35:10 +02:00
|
|
|
'plugins:repository-gcs',
|
2015-11-25 01:04:40 +02:00
|
|
|
'plugins:repository-hdfs',
|
2015-10-29 11:40:19 -07:00
|
|
|
'plugins:repository-s3',
|
|
|
|
'plugins:jvm-example',
|
|
|
|
'plugins:store-smb',
|
2016-03-10 16:19:12 +01:00
|
|
|
'qa:backwards-5.0',
|
2015-11-03 21:42:22 -05:00
|
|
|
'qa:evil-tests',
|
2015-10-29 11:40:19 -07:00
|
|
|
'qa:smoke-test-client',
|
2016-02-01 21:53:52 +01:00
|
|
|
'qa:smoke-test-ingest-with-all-dependencies',
|
|
|
|
'qa:smoke-test-ingest-disabled',
|
2016-06-10 17:20:04 -04:00
|
|
|
'qa:smoke-test-multinode',
|
|
|
|
'qa:smoke-test-plugins',
|
|
|
|
'qa:smoke-test-reindex-with-painless',
|
2016-07-11 20:44:57 +02:00
|
|
|
'qa:smoke-test-http',
|
2015-11-02 12:40:47 -05:00
|
|
|
'qa:vagrant',
|
2015-10-29 11:40:19 -07:00
|
|
|
]
|
|
|
|
|
2015-11-04 22:28:57 -08:00
|
|
|
boolean isEclipse = System.getProperty("eclipse.launcher") != null || gradle.startParameter.taskNames.contains('eclipse') || gradle.startParameter.taskNames.contains('cleanEclipse')
|
|
|
|
if (isEclipse) {
|
|
|
|
// eclipse cannot handle an intermediate dependency between main and test, so we must create separate projects
|
|
|
|
// for core-src and core-tests
|
|
|
|
projects << 'core-tests'
|
|
|
|
}
|
|
|
|
|
|
|
|
include projects.toArray(new String[0])
|
|
|
|
|
2016-05-06 22:22:38 -07:00
|
|
|
project(':build-tools').projectDir = new File(rootProject.projectDir, 'buildSrc')
|
|
|
|
|
2015-11-04 22:28:57 -08:00
|
|
|
if (isEclipse) {
|
2015-11-06 11:45:32 -08:00
|
|
|
project(":core").projectDir = new File(rootProject.projectDir, 'core/src/main')
|
|
|
|
project(":core").buildFileName = 'eclipse-build.gradle'
|
|
|
|
project(":core-tests").projectDir = new File(rootProject.projectDir, 'core/src/test')
|
|
|
|
project(":core-tests").buildFileName = 'eclipse-build.gradle'
|
2015-10-29 11:40:19 -07:00
|
|
|
}
|
|
|
|
|
2015-11-20 11:58:50 -08:00
|
|
|
/**
|
|
|
|
* Iterates over sub directories, looking for build.gradle, and adds a project if found
|
|
|
|
* for that dir with the given path prefix. Note that this requires each level
|
|
|
|
* of the dir hiearchy to have a build.gradle. Otherwise we would have to iterate
|
|
|
|
* all files/directories in the source tree to find all projects.
|
|
|
|
*/
|
|
|
|
void addSubProjects(String path, File dir) {
|
|
|
|
if (dir.isDirectory() == false) return;
|
2015-11-23 14:11:32 -08:00
|
|
|
if (dir.name == 'buildSrc') return;
|
2015-11-20 11:58:50 -08:00
|
|
|
if (new File(dir, 'build.gradle').exists() == false) return;
|
|
|
|
|
2015-11-23 15:15:40 -08:00
|
|
|
String projectName = "${path}:${dir.name}"
|
|
|
|
include projectName
|
2015-11-20 11:58:50 -08:00
|
|
|
for (File subdir : dir.listFiles()) {
|
2015-11-23 15:15:40 -08:00
|
|
|
addSubProjects(projectName, subdir)
|
2015-11-20 11:58:50 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-11-23 14:44:37 -08:00
|
|
|
// look for extra plugins for elasticsearch
|
|
|
|
File xplugins = new File(rootProject.projectDir.parentFile, 'x-plugins')
|
|
|
|
if (xplugins.exists()) {
|
|
|
|
include ':x-plugins'
|
|
|
|
project(':x-plugins').projectDir = xplugins
|
|
|
|
for (File extraPluginDir : xplugins.listFiles()) {
|
|
|
|
addSubProjects(':x-plugins', extraPluginDir)
|
|
|
|
}
|
2015-11-20 11:58:50 -08:00
|
|
|
}
|