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
Publishing Gradle plugin marker: can't set pom name and description #12259
Comments
This seems to be a working workaround: myPublication.pom.withXml { pom ->
pom.asNode().appendNode("name", "the name")
pom.asNode().appendNode("description", "the description")
} |
This is still happening in Gradle 6.8.2 |
This is still happening in Gradle 7.2. Would you accept a fix that only executes these lines when |
I have found another workaround for this: You have to do something similar to get signing of the plugin marker to work too: I have no idea how anyone is supposed to figure this out but I found some good info in these threads: |
Happen still with 8.5. gradlePlugin {
plugins.register("some.id") {
id = "plugin.id"
implementationClass = "impl.Class"
displayName = "SameAsInPom"
description = "Some Description"
}
} I guess the plugin should instead of relaying on this properties, fallback to the UpdateThis is the code in quesiton: Lines 113 to 114 in 34efeac
it overrides the I guess a simple check like |
I want to set the pom name and description like this to satisfy the maven central requirements:
Expected Behavior
Generated poms should contain:
Current Behavior
The 3 lines exist in the actual artifact's pom. However the pom for the plugin marker does not contain the name and description.
Context
This worked in Gradle 4.10.3. On newer versions it is broken. Tested it with 5.0, 5.6.4, 6.0 and 6.2.
Because of this issue it's not possible to publish plugin markers to maven central.
Steps to Reproduce
This is a sample project with publishing set up. If you run
publish
it will write tobuild/repo
:publish-sample.zip
The text was updated successfully, but these errors were encountered: