-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix plugin marker pom not containing name and description #119
fix plugin marker pom not containing name and description #119
Conversation
Codecov Report
@@ Coverage Diff @@
## master #119 +/- ##
============================================
- Coverage 33.93% 33.85% -0.08%
Complexity 51 51
============================================
Files 22 22
Lines 445 446 +1
Branches 73 73
============================================
Hits 151 151
- Misses 264 265 +1
Partials 30 30
Continue to review full report at Codecov.
|
@@ -148,6 +148,12 @@ internal class MavenPublishConfigurer( | |||
if (it.name == "${plugin.name}PluginMarkerMaven") { | |||
// keep the current group and artifact ids, they are based on the gradle plugin id | |||
configurePom(it, groupId = it.groupId, artifactId = it.artifactId) | |||
// workaround for https://github.com/gradle/gradle/issues/12259 | |||
it.pom.withXml { pom -> | |||
pom.asNode().appendNode("name", publishPom.name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there something like replace
or set
? That way if Gradle were to fix their bug we won't be having two <name>
tags?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 I've added checks around these. Tested it manually by adding
it.pom.withXml { pom ->
pom.asNode().appendNode("name", "1")
pom.asNode().appendNode("description", "2")
}
before which resulted in the tests failing because the pom contained 1 and 2.
Awesome, thanks! |
I found a workaround. Closes #117