Commit 42d07a7a authored by Brian Clozel's avatar Brian Clozel

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
parent 859fc6c7
...@@ -72,7 +72,8 @@ class MavenPublishingConventions { ...@@ -72,7 +72,8 @@ class MavenPublishingConventions {
} }
private void customizePom(MavenPom pom, Project project) { 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.getDescription().set(project.provider(project::getDescription));
pom.organization(this::customizeOrganization); pom.organization(this::customizeOrganization);
pom.licenses(this::customizeLicences); pom.licenses(this::customizeLicences);
......
...@@ -6,6 +6,8 @@ plugins { ...@@ -6,6 +6,8 @@ plugins {
id "org.springframework.boot.deployed" id "org.springframework.boot.deployed"
} }
description = "Spring Boot Docs"
configurations { configurations {
actuatorApiDocumentation actuatorApiDocumentation
asciidoctorExtensions asciidoctorExtensions
......
...@@ -51,6 +51,8 @@ gradlePlugin { ...@@ -51,6 +51,8 @@ gradlePlugin {
plugins { plugins {
springBootPlugin { springBootPlugin {
id = "org.springframework.boot" id = "org.springframework.boot"
displayName = "Spring Boot Gradle Plugin"
description = "Spring Boot Gradle Plugin"
implementationClass = "org.springframework.boot.gradle.plugin.SpringBootPlugin" implementationClass = "org.springframework.boot.gradle.plugin.SpringBootPlugin"
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment