Skip to content

Conversation

techsy730
Copy link
Contributor

@techsy730 techsy730 commented Jul 13, 2021

Make the processGoogleServices tasks config avoidant

See https://docs.gradle.org/current/userguide/task_configuration_avoidance.html

This does have the unfortunate side effect of the plugin not complaining about a missing google-services.json unless some process<Configuration>GoogleServices task gets run somehow.
However, that may be better for local development where the answer of how to get a relevant google-services.json can be postponed until after it builds at all. (Though I understand AndroidStudio is capable of handling google-services.json, it would still be good for those forced to use CLI development only).

TESTED: Verified by a really simple local android project. Without this change, it complained about google-services.json immediately. With this change, it only complained about it if :processReleaseGoogleServices or :processDebugGoogleServices was run (directly or indirectly)

Fixes: #180

See https://docs.gradle.org/current/userguide/task_configuration_avoidance.html

This does have the unfortunate side effect of the plugin not complaining about a missing `google-services.json` unless some `process<Configuration>GoogleServices` task gets run somehow.
However, that may be better for local development where the answer of how to get a relevant `google-services.json` can be postponed until after it builds at all. (Though I understand AndroidStudio is capable of handling `google-services.json`, it would still be good for those forced to use CLI development only).

Fixes: google#180
@davidmotson davidmotson merged commit 59e18b5 into google:master Aug 5, 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

Successfully merging this pull request may close these issues.

GoogleServicesPlugin is not Configuration Avoidance compliant
2 participants