Square Dec 13, 2022

Saving 5,400 Hours a Year: Developer Productivity with Gradle

Article Summary

Paul Hundal from Square's Mobile Developer Experience team reveals how one Gradle feature saved their Android team the equivalent of watching 60 football games worth of waiting time. The ROI? $1.1 million annually.

Square's Android codebase spans 4 million lines across 4,000+ modules, with 200 developers collectively spending 182 hours per week waiting for local builds. The MDX Android team tackled this productivity drain by implementing Gradle's Configuration Cache, a feature that reuses task graph computations instead of rebuilding them from scratch every time.

Key Takeaways

Critical Insight

Enabling Gradle's Configuration Cache cut Square's Android build times by more than half, recovering over 5,400 hours of developer productivity annually.

The implementation wasn't just flipping a switch: Square had to convince third parties to upgrade and even fork their own open source tools to make it work.

Recent from Square

Related Articles