From 4d9f68a4b90e0712ab62809208ea92b5f84dcfd7 Mon Sep 17 00:00:00 2001 From: Marcel Schnelle Date: Fri, 17 Sep 2021 22:37:34 +0200 Subject: [PATCH] Description is being removed for Gradle Plugin Markers too, nice --- build-logic/src/main/kotlin/Deployment.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build-logic/src/main/kotlin/Deployment.kt b/build-logic/src/main/kotlin/Deployment.kt index 981cc801..f536ae97 100644 --- a/build-logic/src/main/kotlin/Deployment.kt +++ b/build-logic/src/main/kotlin/Deployment.kt @@ -194,15 +194,16 @@ private fun MavenPublication.applyPublicationDetails( private fun MavenPublication.configurePom(deployConfig: Deployed) { pom { - // Name cannot be set directly through the property, since it somehow isn't applied to Gradle Plugin Marker's POM - // (maybe that plugin removes it somehow). Therefore, use the XML builder for this node as it's still required by Maven Central + // Name and description cannot be set directly through the property, since they somehow aren't applied + // to Gradle Plugin Marker's POM file (maybe that plugin removes them somehow). Therefore, + // use the XML builder for this node as these properties are still required by Maven Central withXml { with(asNode()) { appendNode("name").setValue(deployConfig.artifactId) + appendNode("description").setValue(deployConfig.description) } } - description.set(deployConfig.description) url.set(Artifacts.githubUrl) licenses {