Make Gradle work for you, create your own tasks and plugins
summary
Shows how to implement a real Gradle task that copies APK AAB and mapping into a versioned directory using a BuildSrc class or standalone module, wires inputs/outputs and annotations so Gradle does incremental builds and up-to-date checks (first run ~2s, subsequent runs skip). Demonstrates exposing a plugin via the Gradle plugin DSL, configuring a nice DSL that uses Property for lazy values, and publishing to mavenLocal or the Gradle Plugin Portal so the plugin actually works across projects.
AI-written summary · about
chapters (10)
- 0:00Gradle customization intro
- 1:06Gradle tasks basics
- 3:38Custom task code location
- 5:01Complex Gradle task
- 10:47Plugins vs tasks
- 11:49Task to plugin conversion
- 14:40Plugin usage in project
- 16:28Publishing a plugin
- 17:53Improving tasks and plugins
- 19:39Conclusion & Q&A
related talks
33mUnderstanding Gradle and writing your own Gradle Plugin
51mGradle Plugin, Take Control of the Build!
56mDeep Dive into the Android Gradle Plugin
38mLevel up your Android build
01h 03mPower of Gradle
01h 15mKeeping growing software projects under control with Gradle
35mHow to write Gradle plugins (in Kotlin)
34mWhat's new with the Android Gradle plugin
