File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -81,29 +81,6 @@ public void doCall() {
8181 if (isModule == false || isXPackModule ) {
8282 addNoticeGeneration (project , extension );
8383 }
84- project .afterEvaluate (p -> {
85- @ SuppressWarnings ("unchecked" )
86- NamedDomainObjectContainer <ElasticsearchCluster > testClusters = (NamedDomainObjectContainer <ElasticsearchCluster >) project
87- .getExtensions ()
88- .getByName (TestClustersPlugin .EXTENSION_NAME );
89- p .getExtensions ().getByType (PluginPropertiesExtension .class ).getExtendedPlugins ().forEach (pluginName -> {
90- // Auto add any dependent modules
91- findModulePath (project , pluginName ).ifPresent (
92- path -> testClusters .configureEach (elasticsearchCluster -> elasticsearchCluster .module (path ))
93- );
94- });
95- });
96- }
97-
98- Optional <String > findModulePath (Project project , String pluginName ) {
99- return project .getRootProject ()
100- .getAllprojects ()
101- .stream ()
102- .filter (p -> GradleUtils .isModuleProject (p .getPath ()))
103- .filter (p -> p .getPlugins ().hasPlugin (PluginBuildPlugin .class ))
104- .filter (p -> p .getExtensions ().getByType (PluginPropertiesExtension .class ).getName ().equals (pluginName ))
105- .findFirst ()
106- .map (Project ::getPath );
10784 }
10885
10986 /**
You can’t perform that action at this time.
0 commit comments