Skip to content

Commit 7eeb112

Browse files
committed
Update list of plugins in gradle projects
1 parent c645ba5 commit 7eeb112

File tree

4 files changed

+11
-15
lines changed

4 files changed

+11
-15
lines changed

qa/smoke-test-plugins/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ apply plugin: 'elasticsearch.standalone-rest-test'
2323
apply plugin: 'elasticsearch.rest-test'
2424

2525
ext.pluginsCount = 0
26-
project.rootProject.subprojects.findAll { it.parent.path == ':plugins' }.each { subproj ->
26+
project(':plugins').getChildProjects().each { pluginName, pluginProject ->
2727
integTestCluster {
28-
plugin subproj.path
28+
plugin pluginProject.path
2929
}
3030
pluginsCount += 1
3131
}

qa/vagrant/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ apply plugin: 'elasticsearch.vagrant'
2222

2323
List<String> plugins = []
2424
for (Project subproj : project.rootProject.subprojects) {
25-
if (subproj.path.startsWith(':plugins:') || subproj.path.equals(':example-plugins:custom-settings')) {
25+
if (subproj.parent.path == ':plugins' || subproj.path.equals(':example-plugins:custom-settings')) {
2626
// add plugin as a dep
2727
dependencies {
2828
packaging project(path: "${subproj.path}", configuration: 'zip')

x-pack/qa/smoke-test-plugins-ssl/build.gradle

+4-6
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,10 @@ integTestCluster.dependsOn(importClientCertificateInNodeKeyStore, importNodeCert
162162

163163

164164
ext.pluginsCount = 0
165-
project.rootProject.subprojects.findAll { it.path.startsWith(':plugins:') }.each { subproj ->
166-
if (subproj.plugins.hasPlugin(PluginBuildPlugin) || subproj.plugins.hasPlugin(MetaPluginBuildPlugin)) {
167-
// need to get a non-decorated project object, so must re-lookup the project by path
168-
integTestCluster.plugin(subproj.path)
169-
pluginsCount += 1
170-
}
165+
project(':plugins').getChildProjects().each { pluginName, pluginProject ->
166+
// need to get a non-decorated project object, so must re-lookup the project by path
167+
integTestCluster.plugin(pluginProject.path)
168+
pluginsCount += 1
171169
}
172170

173171
integTestCluster {

x-pack/qa/smoke-test-plugins/build.gradle

+4-6
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@ dependencies {
1010
}
1111

1212
ext.pluginsCount = 0
13-
project.rootProject.subprojects.findAll { it.path.startsWith(':plugins:') }.each { subproj ->
14-
if (subproj.plugins.hasPlugin(PluginBuildPlugin) || subproj.plugins.hasPlugin(MetaPluginBuildPlugin)) {
15-
// need to get a non-decorated project object, so must re-lookup the project by path
16-
integTestCluster.plugin(subproj.path)
17-
pluginsCount += 1
18-
}
13+
project(':plugins').getChildProjects().each { pluginName, pluginProject ->
14+
// need to get a non-decorated project object, so must re-lookup the project by path
15+
integTestCluster.plugin(pluginProject.path)
16+
pluginsCount += 1
1917
}
2018

2119
integTestCluster {

0 commit comments

Comments
 (0)