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

NPE trying to publish modules that don’t need to be published #336

Open
asarkar opened this issue Nov 24, 2020 · 0 comments
Open

NPE trying to publish modules that don’t need to be published #336

asarkar opened this issue Nov 24, 2020 · 0 comments

Comments

@asarkar
Copy link

asarkar commented Nov 24, 2020

Consider a multimodule project where only some of the submodules need to be published. Even the plugin is configured in the root project build file only for the required sub projects, when task bintrayPublish is executed on the root, it fails with NPE.

> Task :bintrayUpload

Repository name, package name or version name are null for project: root project 'xxx'

> Task :bintrayPublish FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':bintrayPublish'.
> java.lang.NullPointerException (no error message)

https://github.com/asarkar/okgrpc/runs/1442767869?check_suite_focus=true

To fix this, task bintrayUpload has to be disabled on the projects that don’t need to be published or each module that needs published is to be published separately. Either way, it’s unnecessary busy work.

Why can’t the plugin just emit a warning and do nothing if the artifact is null?

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

1 participant