Create a Gradle Plugin to Improve Development Productivity
summary
Shows how to build a Gradle plugin for Android that modifies debug builds by appending "-debug" to versionName and applicationId, exposes a simple extension with boolean flags, and uses afterEvaluate to access build script settings. Demonstrates hooking into android.applicationVariants to read outputs and print APK paths after assemble, adding tasks to open Finder/Explorer for built APKs, and supports local installation as well as publishing to the Gradle Plugin Portal.
AI-written summary · about
chapters (9)
- 0:00Gradle plugin intro
- 3:02Gradle plugin basics
- 6:49Debug build plugin
- 12:11APK output path
- 19:19Open APK in Finder
- 23:19Debug Gradle plugins
- 24:46Package plugin
- 28:24Publish to Portal
- 31:14Summary
related talks
56mDeep Dive into the Android Gradle Plugin
43mThe New Android SDK Build System
16mBeing productive with Android Studio & Gradle
32m5 ways to improve your Android build productivity
38mLevel up your Android build
49mGradle plugins: take it to the next level (en)
39mAndroid Gradle Plugin internals
34mWhat's new with the Android Gradle plugin
