Artifact Transforms
summary
A Gradle/Android build often runs far more transformation work than tasks: an assembled debug can execute ~5,000 artifact transforms versus ~2,000 tasks, and the Kotlin and Android plugins register dozens of transform types. Investigations show a single dependency producing 11,000 classes and ~30 MB makes a single transform taking 2 minutes, removing that library cuts the task’s transform time by 50% and yields 15% overall build time reduction; a 321-module project shows transform explosion that disabling a Hilt test option trims by ~7%. Tools: Gradle, Android Gradle Plugin, Kotlin plugin, DevVelocity/Build Scans, Grafana.
AI-written summary · about
chapters (9)
- 0:00Artifact Transforms intro
- 4:03Why transforms matter
- 10:54Custom transform creation
- 14:51Transforms in Android builds
- 23:18Optimizing builds with transforms
- 32:09Fingerprinting time and scans
- 34:19Dev Velocity API insights
- 36:45Analyzing transform performance
- 37:06Resources and closing
related talks
30mImproving Android Build performance
37mBecoming and Staying a Productive Developer with Build Scans, Build Validation Scripts and Gradle
40mMake The Android Gradle Plugin Work For You
36mWhat's new in the Android Studio build system
33mIMPROVING ANDROID BUILD PERFORMANCE
40mImproving Android Build Performance
37mBuild bigger, better: Gradle for large projects
48mOptimizing Android Build Performance
