-
Notifications
You must be signed in to change notification settings - Fork 197
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
Optionally fail if user/key not given #204
Comments
Same happened to me, build was always successful but |
I completely disagree here. We publish our package as part of an organization and that organization has its OSSRH credentials on its profile. Those are the values that should be used by the Bintray Maven Central sync stuff - and in fact when you do this from the UI that is exactly what happens if you do not specify any values here. All that said, I'm not so sure that this is the same thing that happens from the plugin. I do not specify the sync creds in the plugin config for the reasons I described above - but the sync does not automatically happen. Does the plugin just ignore the |
Thank you for opening this issue @tomasbjerre . We are investigating this issue and how to improve this. |
Hi @tomasbjerre I just wanted to update you upon the release of the new version 1.8.1 of the Gradle Bintray Plugin. Previously, if username or password were missing, the bintrayUpload was skipped (as you encountered). With this version, if a username or password are missing, bintrayUpload will not be skipped but the upload will fail with a 401 error:
Please let us know if this suits your needs. Thanks, |
Great thanks! |
I have a shared build script like:
I spent about an hour troubleshooting why I suddenly was unable to release from my laptop. After a while, when running with
-i
, I saw a small info log about not runningbintrayUpload
because no user was specified.If I could set a property that says the plugin should fail, instead of just ignoring the missing property, that would have med me realize this much faster. Or always fail if the property is not set, unless there is a use case where someone would want to run without a user.
Same thing with
mavenCentralSync
. If someone configuressync = true
but configures no user/password, I think there should be an error.The text was updated successfully, but these errors were encountered: