Skip to content

Commit e730e53

Browse files
committed
Configure description, name, and URL in published poms
Fixes gh-1502
1 parent 99584d3 commit e730e53

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

gradle/plugins/conventions-plugin/src/main/java/org/springframework/ws/gradle/conventions/MavenPublishPluginConventions.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ void apply(Project project) {
4141
(variantStrategy) -> variantStrategy.fromResolutionOf("runtimeClasspath"));
4242
strategy.usage("java-runtime", (variantStrategy) -> variantStrategy.fromResolutionResult());
4343
});
44-
configurePom(publication);
44+
configurePom(project, publication);
4545
});
4646
});
4747
project.getPlugins().withType(JavaPlatformPlugin.class).all((javaPlatformPlugin) -> {
4848
publishing.getPublications().create("maven", MavenPublication.class, (publication) -> {
4949
publication.from(project.getComponents().getByName("javaPlatform"));
50-
configurePom(publication);
50+
configurePom(project, publication);
5151
});
5252
});
5353
}
@@ -62,10 +62,13 @@ void configureRepositories(Project project, PublishingExtension publishing) {
6262
}
6363
}
6464

65-
void configurePom(MavenPublication mavenPublication) {
65+
void configurePom(Project project, MavenPublication mavenPublication) {
6666
String organizationName = "Broadcom Inc.";
6767
String organizationUrl = "https://www.spring.io";
6868
mavenPublication.pom((pom) -> {
69+
pom.getUrl().set("https://spring.io/projects/spring-ws");
70+
pom.getName().set(project.provider(project::getName));
71+
pom.getDescription().set(project.provider(project::getDescription));
6972
pom.developers((developers) -> developers.developer((developer) -> {
7073
developer.getName().set("Spring");
7174
developer.getEmail().set("ask@spring.io");

0 commit comments

Comments
 (0)