Skip to content

Commit 4d9f68a

Browse files
committed
Description is being removed for Gradle Plugin Markers too, nice
1 parent f8b02c8 commit 4d9f68a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

build-logic/src/main/kotlin/Deployment.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,15 +194,16 @@ private fun MavenPublication.applyPublicationDetails(
194194

195195
private fun MavenPublication.configurePom(deployConfig: Deployed) {
196196
pom {
197-
// Name cannot be set directly through the property, since it somehow isn't applied to Gradle Plugin Marker's POM
198-
// (maybe that plugin removes it somehow). Therefore, use the XML builder for this node as it's still required by Maven Central
197+
// Name and description cannot be set directly through the property, since they somehow aren't applied
198+
// to Gradle Plugin Marker's POM file (maybe that plugin removes them somehow). Therefore,
199+
// use the XML builder for this node as these properties are still required by Maven Central
199200
withXml {
200201
with(asNode()) {
201202
appendNode("name").setValue(deployConfig.artifactId)
203+
appendNode("description").setValue(deployConfig.description)
202204
}
203205
}
204206

205-
description.set(deployConfig.description)
206207
url.set(Artifacts.githubUrl)
207208

208209
licenses {

0 commit comments

Comments
 (0)