SoundCloud Aug 30, 2019

Gradle Remote Build Cache Optimization

Article Summary

Nelson Osacky from SoundCloud reveals how simply turning on Gradle's remote build cache got them almost zero cache hits. The real work was hunting down why.

SoundCloud's Android team faced a critical problem: build times were slowing down development. They had remote build caching enabled, but weren't seeing the benefits. This deep dive shows how they debugged cache misses using Gradle Enterprise to compare builds and identify why tasks weren't reusing cached outputs.

Key Takeaways

Critical Insight

Enabling remote build cache is just step one: you need to ensure task inputs match across environments or you'll get zero cache hits.

Part two covers even more complex cache misses and the actual time savings they measured across the team.

Recent from SoundCloud

Related Articles