Triple-T / gradle-play-publisher

GPP is Android's unofficial release automation Gradle Plugin. It can do anything from building, uploading, and then promoting your App Bundle or APK to publishing app listings and other metadata.
MIT License
4.13k stars 341 forks source link

It throws an exception on no artifact directory found, but unfortunately, it doesn't throw anything on absent artifact. #1001

Open SUPERCILEX opened 3 years ago

SUPERCILEX commented 3 years ago

It throws an exception on no artifact directory found, but unfortunately, it doesn't throw anything on absent artifact. I launch "publishBundle" task with nothing in artifact directory and task returns success state and no error or any warning line. Of course, I can check this case myself, but to be honest I expect that plugin that makes publishing of some artifact should say anything if that artifact has not been found

Originally posted by @gtgray in https://github.com/Triple-T/gradle-play-publisher/discussions/999#discussioncomment-1291646

SUPERCILEX commented 3 years ago

Oh, actually I remember why we set it up like this. All our tasks use @SkipWhenEmpty so that you can run the global publishApps task without needing to use each sub-feature. It might make sense to fail artifact publishing tasks, but that would break people using just the listing or product sub-features.