Skip to content

Commit 42d07a7

Browse files
committed
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
1 parent 859fc6c commit 42d07a7

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

buildSrc/src/main/java/org/springframework/boot/build/MavenPublishingConventions.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ void apply(Project project) {
7272
}
7373

7474
private void customizePom(MavenPom pom, Project project) {
75-
pom.getUrl().set("https://projects.spring.io/spring-boot/#");
75+
pom.getUrl().set("https://spring.io/projects/spring-boot");
76+
pom.getName().set(project.provider(project::getName));
7677
pom.getDescription().set(project.provider(project::getDescription));
7778
pom.organization(this::customizeOrganization);
7879
pom.licenses(this::customizeLicences);

spring-boot-project/spring-boot-docs/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ plugins {
66
id "org.springframework.boot.deployed"
77
}
88

9+
description = "Spring Boot Docs"
10+
911
configurations {
1012
actuatorApiDocumentation
1113
asciidoctorExtensions

spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ gradlePlugin {
5151
plugins {
5252
springBootPlugin {
5353
id = "org.springframework.boot"
54+
displayName = "Spring Boot Gradle Plugin"
55+
description = "Spring Boot Gradle Plugin"
5456
implementationClass = "org.springframework.boot.gradle.plugin.SpringBootPlugin"
5557
}
5658
}

0 commit comments

Comments
 (0)