Skip to content
This repository has been archived by the owner on Feb 25, 2021. It is now read-only.

staginProfileId not honored #53

Closed
lamba92 opened this issue Feb 22, 2021 · 2 comments
Closed

staginProfileId not honored #53

lamba92 opened this issue Feb 22, 2021 · 2 comments

Comments

@lamba92
Copy link

lamba92 commented Feb 22, 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).

When executing gradlew publishToSonatype the Nexus Publish Plugin do not use the stagingProfileId set in root project by the Nexus Staging Plugin (see see root build.gradle.kts) and instead creates a new stagin repository with id comgithublamba92-{random_number}. The projects :api:core and :api:bot-builder apply the Nexus Publish Plugin trough the KotlingramPublishedApiPlugin.

Also the Nexus Staging Repository seems to not honor the repository name when creating one with task createRepository, naming the repository with stagingRepositoryId.set(rootProject.name) as well.

Probably related to nexus-staging-plugin/#192

@lamba92
Copy link
Author

lamba92 commented Feb 22, 2021

Duplicate of #51

@marcphilipp
Copy link
Owner

This plugin is now deprecated in favor of the new Gradle Nexus Publish Plugin which provides additional tasks to close and release staging repositories. Please refer to the migration guide for details on how to make the switch. If this issue is still relevant to you, please open a new issue in the new repository.

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

No branches or pull requests

2 participants