vanniktech / gradle-maven-publish-plugin

A Gradle plugin that publishes your Android and Kotlin libraries, including sources and javadoc, to Maven Central or any other Nexus instance.
https://vanniktech.github.io/gradle-maven-publish-plugin
Apache License 2.0
1.25k stars 115 forks source link

Better naming for deployment name for Central Portal #793

Open krizzu opened 2 months ago

krizzu commented 2 months ago

For context: the name of deployment to Central Portal is groupdId + deployment Id (UUID).

With multiple artifacts under one group ID, it is hard to tell, in Central Portal's dashboard, which deployment refers to which artifact, unless one inspects content of it . I think it'd be good to also include artifact name as part of deployment name, to improve readability. I'm happy to open a PR. Thoughts?

gabrielittner commented 2 months ago

Our main issue is that if you have a multi module project that the deployment will contain the artifacts of all modules, so there isn't just one artifact name. Even the way we're using group right now is slightly opportunistic since technically you could use different groups within one project. I'm generally happy to improve this though if you have an idea on how to solve that part.

krizzu commented 2 months ago

I feel like adding a new property to mavenPublishing extension could satisfy the needs for all situations, something like:

mavenPublishing {
  // ...others
  deploymentName = "$group-$artifactName-$version-${UUID.randomUUID()}"
}