Dancing with Elephants: Gradle Tips and Tricks
summary
Shows concrete commands and tools: enables configuration cache and measures a JPEG compose preview drop from 30s to 5s, inspects and kills the Gradle daemon, enables shell task autocompletion, runs continuous mode to rerun a single test in milliseconds, debugs Gradle scripts in IntelliJ, and uses Gradle Profiler with scenario files to benchmark changes. Example benchmarks compare K2 vs legacy compiler (8s → 5.4s, ~30% faster) and an API/impl split giving ~43% faster incremental builds.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 1:11Configuration cache benefits
- 2:13Command line basics
- 4:41Managing Gradle demons
- 5:47Task abbreviation tricks
- 7:56Autocompletion setup
- 9:42Continuous mode explained
- 16:31Debugging Gradle scripts
- 21:04Gradle Profiler overview
- 27:02Benchmarking K2 compiler
- 30:58Comparing Git branches
- 33:48Incremental profiling
- 41:57Performance improvements summary
related talks
51mCreate Elegant Builds At Scale With Gradle
01h 01mGradle 3.0 and beyond
01h 01mImprove Java build performance with Gradle 5
43mSqueezing the last drop of performance out of your Gradle builds (en)
31mImproving Android Build performance
58mGradle: Harder, Better, Stronger, Faster
48mGradle 3.0 and beyond for Android Development
01h 03mPower of Gradle
