Open krizzu opened 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.
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()}"
}
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?