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
Ability to publish to multiple profiles from same repository #658
Comments
Your assessment is correct. We currently only support one profile per build, so it would be a new feature that we'd need to support. One complexity which I'm not sure about right now is that we create a staging repository and then set the url of that as the repository url. If we'd need 2 separate staging repos we'd also need to create 2 repositories and then selectively only publish each artifact to one of the 2 repositories. Could you share a screenshot of your staging profiles in the web UI? Also do you remember or could you try and check what the name of the automatically created staging repositories was before using this plugin? |
There is an extra staging repository page in the web UI where you can manually close and release created repositories. Usually those are named after the staging profile with a number suffix, like |
Yes, I usually do get 3 of them when publishing, but I cannot remember their names. |
That helps 👍 |
Any updates on here or any way I can help? |
After looking into this I think the best thing would be to check with Sonatype whether it's possible to have a staging profile that is allowed to publish all 3 groups. That would also make sense from the perspective that these 3 should be published together so it would be better if they are in the same staging repository. Things that are theoretically possible on our side, but all not great. The core issue is that for each staging profile we have a different url to publish to.
Maybe one option could also be to request a |
As mentioned this is not really possible to do with what Gradle exposes for the publishing APIs. With the new Central Portal there are no publishing profiles so I'm closing this since everything will eventually move there. |
I'm converting my Gradle plugin to use
gradle-maven-publish-plugin
I'm currently getting the following error when attempting to publish my plugin.I've narrowed this error down to the fact that all artifacts are being published with the same nexus profile.
This function only selects one profile for one artifact's group id.
In this case, I need the ability to publish each artifact using a different nexus profile. For example, the artifact with the groupId
com.osacky.fladle
artifact needs to be published using thecom.osacky.fladle
profile. Thecom.osacky.fulladle
artifact needs to be published with thecom.osacky.fulladle
artifact.I was wondering if you agree with the above assessment and if there is a way to configure each artifact in a single project to publish to a different profile? Thanks 🙏
The text was updated successfully, but these errors were encountered: