Skip to content
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

staginProfileId not honored #192

Closed
lamba92 opened this issue Feb 23, 2021 · 1 comment
Closed

staginProfileId not honored #192

lamba92 opened this issue Feb 23, 2021 · 1 comment

Comments

@lamba92
Copy link

lamba92 commented Feb 23, 2021

In project kotlingram I am trying to publish a Kotlin/Multipaltform project that needs Windows, MacOs and Linux, and uses GitHub Actions to do so (see publication_ci.yml).

The Nexus Staging Plugin seems to not honor the repository name when creating one with task createRepository, instead naming the repository with comgithublamba92-{random_number} and ignoring the value stagingRepositoryId.set(rootProject.name) set in root build.gradle.kts.

I am also using the Nexus Publish Plugin which when executing gradlew publishToSonatype do not honor the repository id set by root staging plugin and instead generates a staging repository for each machine.

When invoking closeRepository it errors saying:

500: Server Error, body: [errors:[[id:*, msg:Unhandled: Missing staging repository: kotlingram]]]

Probably related to nexus-publish-plugin/#53

@szpak
Copy link
Member

szpak commented Feb 23, 2021

publishToSonatype and closeRepository (or closeAndReleaseRepository) has to be used in the same call to share stagingRepositoryId. GNSP + NPP don't support releasing from multiple builds and probably will not.

However, I and Marc (the author of NPP) wrote a brand new releasing plugin which also doesn't support it yet, but there is a plan to implement it one day :-). See gradle-nexus/publish-plugin#59 (and gradle-nexus/publish-plugin#19) to comment if it would be sufficient for you (once implemented).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants