Your Build, Your Rules
summary
Shows how a single convention Gradle plugin wraps other plugins to expose a tiny DSL, uses the Gradle Property API with disallowChanges property API and Android's Finalize DSL or afterEvaluate as fallbacks, runs validation tasks at execution time to validate AAR manifest minSdk 24 and artifact contents, parses build.gradle for banned blocks with tools like Nebula lint, and offers an extreme option using build.json declarative config (inspired by Declarative Gradle Project EAP) for thousands‑module repos.
AI-written summary · about
chapters (9)
- 0:00Start
- 0:11Target audience and motivation for strict Gradle builds
- 1:45Using convention plugins to reduce developer boilerplate
- 4:40Enforcing properties and locking values with APIs
- 8:38Using validation tasks to ensure build consistency
- 9:50Validating build outputs and artifact quality
- 11:02Analyzing and linting build files directly
- 12:15Exploring extreme enforcement via non-Gradle configurations
- 16:32Summary of strategies for growing build teams
related talks
20mClean Code Base: Harnessing the Power of Android Lint and Custom Rules
56mDeep Dive into the Android Gradle Plugin
39mKotlinify your Gradle
42mRock the Gradle, rule the world
33mStop Debating. Start Enforcing with Lint Rules
30mGradle Ex Machina
49mGradle plugins: take it to the next level (en)
32m5 ways to improve your Android build productivity
