2015-10-30 02:40:19 +08:00
|
|
|
/*
|
2021-02-03 05:41:39 +08:00
|
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
|
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
|
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
|
|
* Side Public License, v 1.
|
2015-10-30 02:40:19 +08:00
|
|
|
*/
|
|
|
|
|
2019-11-13 18:14:04 +08:00
|
|
|
subprojects {
|
2021-05-06 20:02:35 +08:00
|
|
|
apply plugin: 'elasticsearch.internal-testclusters'
|
2019-04-26 23:34:03 +08:00
|
|
|
}
|
|
|
|
|
2021-08-21 03:11:05 +08:00
|
|
|
configurations {
|
|
|
|
repositoryPlugins
|
|
|
|
nonRepositoryPlugins
|
|
|
|
}
|
|
|
|
|
|
|
|
// Intentionally doesn't include `repository-hdfs`
|
|
|
|
List<String> repositoryPlugins = [
|
|
|
|
'repository-azure',
|
|
|
|
'repository-gcs',
|
|
|
|
'repository-s3'
|
|
|
|
]
|
|
|
|
|
2015-12-16 12:14:37 +08:00
|
|
|
// only configure immediate children of plugins dir
|
|
|
|
configure(subprojects.findAll { it.parent.path == project.path }) {
|
2015-10-30 02:40:19 +08:00
|
|
|
group = 'org.elasticsearch.plugin'
|
2021-05-06 20:02:35 +08:00
|
|
|
apply plugin: 'elasticsearch.internal-es-plugin'
|
2015-10-30 02:40:19 +08:00
|
|
|
|
2015-11-08 08:34:26 +08:00
|
|
|
esplugin {
|
|
|
|
// for local ES plugins, the name of the plugin is the same as the directory
|
|
|
|
name project.name
|
2019-11-13 18:14:04 +08:00
|
|
|
|
2021-02-03 05:41:39 +08:00
|
|
|
licenseFile rootProject.file('licenses/SSPL-1.0+ELASTIC-LICENSE-2.0.txt')
|
2017-02-16 03:23:12 +08:00
|
|
|
noticeFile rootProject.file('NOTICE.txt')
|
2015-11-08 08:34:26 +08:00
|
|
|
}
|
2021-08-21 03:11:05 +08:00
|
|
|
|
|
|
|
|
|
|
|
if (repositoryPlugins.contains(project.name)) {
|
|
|
|
parent.artifacts.add('repositoryPlugins', tasks.named('bundlePlugin'))
|
|
|
|
} else {
|
|
|
|
parent.artifacts.add('nonRepositoryPlugins', tasks.named('bundlePlugin'))
|
|
|
|
}
|
2015-10-30 02:40:19 +08:00
|
|
|
}
|