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

How to get repository id from publishSigned command #66

Closed
ChoiByungWook opened this issue Apr 6, 2018 · 6 comments
Closed

How to get repository id from publishSigned command #66

ChoiByungWook opened this issue Apr 6, 2018 · 6 comments
Labels

Comments

@ChoiByungWook
Copy link

I want to release the staging repository that was created from running publishSigned, however sonatypeRelease will fail if there are more than one repository under the same staging profile. I don't want to release all the repositories, so sonatypeReleaseAll can't be used.

@xerial xerial added the question label Apr 6, 2018
@xerial
Copy link
Owner

xerial commented Apr 6, 2018

You can use these commands:

  • sonatypeStagingProfiles
  • sonatypeList

@ChoiByungWook
Copy link
Author

Is there a way to link the repository that was created by publishSigned? If I have two repositories under the same staging profile, how do I differentiate them?

Is there someway we can make publishSigned return the repository id that was just created?

@xerial
Copy link
Owner

xerial commented Apr 7, 2018

You can use sonatypeOpen (profile name) (description) https://github.com/xerial/sbt-sonatype/blob/master/workflow.md for this purpose.

@xerial
Copy link
Owner

xerial commented Apr 7, 2018

And also if you set publishTo as:

publishTo := soantypePublishTo.value

https://github.com/xerial/sbt-sonatype/blob/master/src/main/scala/xerial/sbt/Sonatype.scala#L84

Then you can send the artifact to the target profile.

@ChoiByungWook
Copy link
Author

This doesn't seem to work with publishSigned.

I use sonatypeOpen (profile name) (description), which creates a repository in sonatype, but it publishSigned doesn't take any parameters to publish to a specified repository.

@xerial
Copy link
Owner

xerial commented Sep 5, 2019

@ChoiByungWook sbt-sonatype 3.0 has a feature to specify a single staging repository by using sonatypeSessionName key, which is [sbt-sonatype] (project name) (version) by default.

I'm not sure this works for your build configuration, but have a try.

@xerial xerial closed this as completed Sep 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants