Fix published Maven POMs

Prior to this commit, the published Maven POMs would not pass the Maven
Central mandatory checks.

This commit adds the missing project name and description metadata for
most artifacts. The Spring Boot Gradle plugin artifact was also missing
this information and this is now added in the plugin metadata itself.
This is also updating the project page URL which is now hosted directly
on spring.io.

Fixes gh-21457
This commit is contained in:
Brian Clozel 2020-05-14 23:51:38 +02:00
parent 859fc6c7e1
commit 42d07a7acd
3 changed files with 6 additions and 1 deletions

View File

@ -72,7 +72,8 @@ class MavenPublishingConventions {
}
private void customizePom(MavenPom pom, Project project) {
pom.getUrl().set("https://projects.spring.io/spring-boot/#");
pom.getUrl().set("https://spring.io/projects/spring-boot");
pom.getName().set(project.provider(project::getName));
pom.getDescription().set(project.provider(project::getDescription));
pom.organization(this::customizeOrganization);
pom.licenses(this::customizeLicences);

View File

@ -6,6 +6,8 @@ plugins {
id "org.springframework.boot.deployed"
}
description = "Spring Boot Docs"
configurations {
actuatorApiDocumentation
asciidoctorExtensions

View File

@ -51,6 +51,8 @@ gradlePlugin {
plugins {
springBootPlugin {
id = "org.springframework.boot"
displayName = "Spring Boot Gradle Plugin"
description = "Spring Boot Gradle Plugin"
implementationClass = "org.springframework.boot.gradle.plugin.SpringBootPlugin"
}
}