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

Consider shading Google API client dependencies #1091

Closed tadfisher closed 1 year ago

tadfisher commented 1 year ago

Problem description

I have Google API client dependencies on the build classpath from com.google.firebase.testlab:testlab-gradle-plugin. That plugin needs version 1.x of google-api-client, and this plugin wants version 2.x, which are not compatible:

Exception java.lang.IllegalStateException: You are currently running with version 2.2.0 of google-api-client. You need at least version 1.15 of google-api-client to run version 1.22.0 of the Cloud Testing API library.

Potential solutions/workarounds

Ideally, both plugins would shade their dependencies, for example by using the shadow plugin; this is because Gradle doesn't isolate classpaths between plugins, so it ends up resolving the larger of the two library versions per its normal dependency resolution rules.

I will also open a report on Google's issue tracker.

SUPERCILEX commented 1 year ago

The only thing that changed in 3.8.4 was the dependency update, so feel free to keep using 3.8.3.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.