play-services-plugins
play-services-plugins copied to clipboard
Google Services Plugin disables execution optimizations for resource merging due to implicit dependency
Describe the bug A clear and concise description of what the bug is. Also, if the code base looks familiar, feel free to update the existing tests (or add new ones) in a Fork of the Repo to explain the issue.
Gradle 7.5-rc-1 reports the following issue caused by the Google Services Plugin
Execution optimizations have been disabled for task ':app:mergeInternalDebugResources' to ensure correctness due to the following reasons:
- Gradle detected a problem with the following location: '/Users/zacsweers/dev/slack/slack-android-ng/app/build/generated/res/google-services/internal/debug'. Reason: Task ':app:mergeInternalDebugResources' uses this output of task ':app:processInternalDebugGoogleServices' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5-rc-1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
To Reproduce Steps to reproduce the behavior:
- Use Gradle 7.5-rc-1
- Build a project using the google services gradle plugin
- Observe the warning
Expected behavior It should not cause warnings and disable optimizations
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- Gradle version: 7.5-rc-1
- Android Studio version [e.g. 3.1 (stable)]: N/A
- Plugin name and version [e.g. OSS Licenses 16.0.0]: Google services plugin 4.3.10
Additional context Add any other context about the problem here.