Skip to content

Commit

Permalink
Also suppress all dependency warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
marchermans committed Jan 7, 2025
1 parent 18289aa commit 7747a11
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ private void configurePublication(Project project) {
//This needs to be in an after evaluate block to ensure that the project has been configured.
publishing.getPublications().create("default", MavenPublication.class, publication -> {
publication.from(project.getComponents().getByName("java"));
publication.suppressAllPomMetadataWarnings();
});

publishing.getPublications().withType(MavenPublication.class).configureEach(publication -> {
publication.pom(mavenPublishing::configure);
publication.suppressAllPomMetadataWarnings();
});
});
}
Expand Down

0 comments on commit 7747a11

Please sign in to comment.