From 42d07a7acd3a10b2823b9af9a68b69ae99990cf5 Mon Sep 17 00:00:00 2001 From: Brian Clozel Date: Thu, 14 May 2020 23:51:38 +0200 Subject: [PATCH] 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 --- .../springframework/boot/build/MavenPublishingConventions.java | 3 ++- spring-boot-project/spring-boot-docs/build.gradle | 2 ++ .../spring-boot-tools/spring-boot-gradle-plugin/build.gradle | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/buildSrc/src/main/java/org/springframework/boot/build/MavenPublishingConventions.java b/buildSrc/src/main/java/org/springframework/boot/build/MavenPublishingConventions.java index 91d0b27dac1..2a447dd5e59 100644 --- a/buildSrc/src/main/java/org/springframework/boot/build/MavenPublishingConventions.java +++ b/buildSrc/src/main/java/org/springframework/boot/build/MavenPublishingConventions.java @@ -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); diff --git a/spring-boot-project/spring-boot-docs/build.gradle b/spring-boot-project/spring-boot-docs/build.gradle index 790bc8edb45..fd7681a79ee 100644 --- a/spring-boot-project/spring-boot-docs/build.gradle +++ b/spring-boot-project/spring-boot-docs/build.gradle @@ -6,6 +6,8 @@ plugins { id "org.springframework.boot.deployed" } +description = "Spring Boot Docs" + configurations { actuatorApiDocumentation asciidoctorExtensions diff --git a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/build.gradle b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/build.gradle index 4a593a25317..e1085cdd2a9 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/build.gradle +++ b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/build.gradle @@ -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" } }