Speaker Deck

Squeezing the Last Drop of Performance Out of Your Gradle Builds (Droidcon Paris 2015)

by Madis Pink

Published November 9, 2015 in Programming

This talk was given at Droidcon Paris 2015.

Recording on YouTube: https://www.youtube.com/watch?v=AbNhen_zn-c

As developers we spend way too much time waiting for things. We all know waiting is no fun and we’d rather spend time developing and testing our app. Sometimes we’re waiting on our integration test suite, sometimes it’s our app, but quite often Gradle is the time waster. The latter is often regarded as a black box that’s way slower than Ant/Eclipse ever was, and that’s saying something!

In this session we’ll see how having a deeper understanding of your Gradle build can help you identify major bottlenecks. We’ll look at how minimizing the configuration and dependency resolution overhead helps to reduce your cycle times when using host-based tools, like the new unit testing support, Robolectric or JRebel for Android. We’ll also explore ways of structuring your project in a way that takes advantage of Gradle incremental builds.