File tree 1 file changed +11
-2
lines changed
buildSrc/src/main/groovy/org/elasticsearch/gradle/plugin
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -37,19 +37,28 @@ class MetaPluginBuildPlugin implements Plugin<Project> {
37
37
project. plugins. apply(RestTestPlugin )
38
38
39
39
createBundleTask(project)
40
+ boolean isModule = project. path. startsWith(' :modules:' )
40
41
41
42
project. integTestCluster {
42
43
dependsOn(project. bundlePlugin)
43
- plugin(project. path)
44
44
}
45
45
BuildPlugin . configurePomGeneration(project)
46
46
project. afterEvaluate {
47
47
PluginBuildPlugin . addZipPomGeneration(project)
48
+ if (isModule) {
49
+ if (project. integTestCluster. distribution == ' integ-test-zip' ) {
50
+ project. integTestCluster. module(project)
51
+ }
52
+ } else {
53
+ project. integTestCluster. plugin(project. path)
54
+ }
48
55
}
49
56
50
57
RunTask run = project. tasks. create(' run' , RunTask )
51
58
run. dependsOn(project. bundlePlugin)
52
- run. clusterConfig. plugin(project. path)
59
+ if (isModule == false ) {
60
+ run. clusterConfig. plugin(project. path)
61
+ }
53
62
}
54
63
55
64
private static void createBundleTask (Project project ) {
You can’t perform that action at this time.
0 commit comments