Skip to content

Commit

Permalink
Description is being removed for Gradle Plugin Markers too, nice
Browse files Browse the repository at this point in the history
  • Loading branch information
mannodermaus committed Sep 17, 2021
1 parent f8b02c8 commit 4d9f68a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build-logic/src/main/kotlin/Deployment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4d9f68a

Please sign in to comment.