-
Notifications
You must be signed in to change notification settings - Fork 8
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
Gradle should allow pom.xml customization for Gradle Plugin Portal artifacts #212
Comments
TBH I think the plugin portal shouldn't do anything special and use the regular publishing mechanisms. We have no concrete plans now but we're seriously thinking about it. |
@vlsi the normal mechanisms of
https://docs.gradle.org/current/userguide/publishing_gradle_plugins.html#plugin-publishing-plugin You can customise the pom by configuring the publication created by the plugin-publish plugin:
I know this is not very intuitive and should be improved (i.e. maven-publish should be "enforced") in the future. Can you check if this issue can be closed? |
@jjohannes Could you be more specific about "do not change artefact/group via the plugin-publish specific mechanism"? |
@PFCJeong I mean that you use Gradle's core mechanism for setting "group" and "artifact" that is also used in other places. For artifact: The subproject's name is the artifact. For this you need to make sure the subproject has the name you expect in the For the
|
The generated pom is also missing the scmUrl even if it is set up in the Pom from publications: https://maven.minco.dev/dev/minco/gradle/defaults-plugin/dev.minco.gradle.defaults-plugin.gradle.plugin/0.2.43/dev.minco.gradle.defaults-plugin.gradle.plugin-0.2.43.pom |
To clarify what, IMO, the longstanding issue is here:
As example, this POM ...should have the same But there is no way to achieve that. |
unpopular opinion: the portal should only be an index of things published on Maven Central. Problem solved :) |
I am not sure Maven Central license would allow Gradle (or someone else) to index and publish contents. However, it would indeed be great if there was no need to publish the artifacts twice. The catch-22 is that publishing to Central is a little bit harder than publishing to Gradle Plugin Portal, so users get "not that good experience" which Gradle sadly can't control much. I really hope Sigstore would get some spin soon so it would be easier to publish to Central. |
+1
I'd be okay if it's a manual index (see #225). Plugin authors could manage their metadata and update it on new release, etc... without the Gradle Plugin Portal having to crawl Maven Central. |
I in general do not care if the portal does something smart or not. what I do not like is that the portal is not keeping all the information. So either just use what is already there OR at least put all the information the plugin has in its pom into the generated pom.... I have a similar problem, my scm information is lost which means that dependabot cannot find the release to that plugin. |
Expected Behavior
There should be a way to ensure
pom.xml
files are identical at Gradle Plugin Portal and at Sonatype OSSRH.Current Behavior
Gradle deploys a different pom to the portal, so the users of Gradle Dependency Verification identify an unexpected difference: burrunan/gradle-s3-build-cache#8
Context
I deploy the plugin to both OSSRH and Portal (mainly for testing and signing reasons), and OSSRH mandates certain elements in the pom (license, etc).
The text was updated successfully, but these errors were encountered: