Skip to content

Commit 352329b

Browse files
zelinhshiv0408
authored andcommitted
Replace configureEach with all for publication iteration (opensearch-project#12876)
* Change from configureEach to all to resolve incompatibility Signed-off-by: Zelin Hao <zelinhao@amazon.com> * Update Changelog Signed-off-by: Zelin Hao <zelinhao@amazon.com> --------- Signed-off-by: Zelin Hao <zelinhao@amazon.com> Signed-off-by: Shivansh Arora <hishiv@amazon.com>
1 parent a49ba08 commit 352329b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1919
- Remote reindex: Add support for configurable retry mechanism ([#12561](https://github.com/opensearch-project/OpenSearch/pull/12561))
2020
- [Admission Control] Integrate IO Usage Tracker to the Resource Usage Collector Service and Emit IO Usage Stats ([#11880](https://github.com/opensearch-project/OpenSearch/pull/11880))
2121
- Tracing for deep search path ([#12103](https://github.com/opensearch-project/OpenSearch/pull/12103))
22-
- Add explicit dependency to validatePom and generatePom tasks ([#12103](https://github.com/opensearch-project/OpenSearch/pull/12807))
22+
- Add explicit dependency to validatePom and generatePom tasks ([#12807](https://github.com/opensearch-project/OpenSearch/pull/12807))
23+
- Replace configureEach with all for publication iteration ([#12876](https://github.com/opensearch-project/OpenSearch/pull/12876))
2324

2425
### Dependencies
2526
- Bump `log4j-core` from 2.18.0 to 2.19.0

buildSrc/src/main/java/org/opensearch/gradle/precommit/PomValidationPrecommitPlugin.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public class PomValidationPrecommitPlugin extends PrecommitPlugin {
4848
public TaskProvider<? extends Task> createTask(Project project) {
4949
TaskProvider<Task> validatePom = project.getTasks().register("validatePom");
5050
PublishingExtension publishing = project.getExtensions().getByType(PublishingExtension.class);
51-
publishing.getPublications().configureEach(publication -> {
51+
publishing.getPublications().all(publication -> {
5252
String publicationName = Util.capitalize(publication.getName());
5353
TaskProvider<PomValidationTask> validateTask = project.getTasks()
5454
.register("validate" + publicationName + "Pom", PomValidationTask.class);
@@ -59,7 +59,7 @@ public TaskProvider<? extends Task> createTask(Project project) {
5959
validateTask.configure(task -> {
6060
task.dependsOn(generateMavenPom);
6161
task.getPomFile().fileProvider(generateMavenPom.map(GenerateMavenPom::getDestination));
62-
publishing.getPublications().configureEach(publicationForPomGen -> {
62+
publishing.getPublications().all(publicationForPomGen -> {
6363
task.mustRunAfter(
6464
project.getTasks()
6565
.withType(GenerateMavenPom.class)

0 commit comments

Comments
 (0)