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

Could you please migrate to Property<...> APIs? #124

Closed
vlsi opened this issue Jul 24, 2019 · 3 comments
Closed

Could you please migrate to Property<...> APIs? #124

vlsi opened this issue Jul 24, 2019 · 3 comments

Comments

@vlsi
Copy link

vlsi commented Jul 24, 2019

Current APIs require to set properties like username/password/stagingProfileId/packageGroup/... no matter if the staging would actually take place or not.

That is I can't treat "missing username" as an error because user might be just building jars.

It would be so much better if I could just pass values via Property so it would be queried only when the task was really about to run.
Then I could produce a nicer failure message that would clarify user what went wrong and which property (e.g. in gradle.properties) should be configured.

@szpak
Copy link
Member

szpak commented Jul 26, 2019

Yes, I plan to do that - the new properties already use the new API. However, I will be not backward compatible chance for nexus-publish-plugin.

@szpak
Copy link
Member

szpak commented Sep 11, 2019

@szpak
Copy link
Member

szpak commented Feb 26, 2021

TL;TD. gradle-nexus-publish-plugin is already using that approach.

A longer version. To make releasing to Maven Central even easier, I and Marc Phillip (the author of nexus-publish-plugin) combined forces to create a next generation, unified, 2-in-1 plugin - gradle-nexus-publish-plugin. It is a recommended solution, as our development effort will be put in that new plugin. See my blog post and the official migration guide.

@szpak szpak closed this as completed Feb 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants