I tried to inspect my gradle build based on a tip from I/O talk: Run gradle build two times and see which tasks are not UP-TO-DATE. And I found the culprit: google-services-plugin.
I run ./gradlew assembleProdDebug two times without any changes and task :app:processProdDebugGoogleServices is not UP-TO-DATE. It causes other tasks down the road to execute again and it's slowing down every build.
Can google-services-plugin be made cacheable?