Kotlinify your Gradle
summary
Builds and runs a concrete Gradle plugin that scans TODO comments across Android variants, uses the Android Gradle Plugin API to enumerate source sets and create per-variant tasks, validates extension properties and reports clickable file:line results in the IDE, and publishes locally via Maven for testing against an example app. Shows converting Groovy build scripts to Kotlin DSL (.kts), explains lambda-with-receiver APIs for configuration and their limits, notes Kotlin DSL v0.16.3 is usable but flaky and requires IDE refreshes and manual fixes and converts build.gradle to build.gradle.kts.
AI-written summary · about
chapters (15)
- 0:00Start
- 0:19WHO AM I?
- 0:52AGENDA
- 1:15WHAT IS GRADLE
- 2:01INTERESTING EXISTING PLUGINS
- 2:45BUILDING A GRADLE PLUGIN
- 21:17WHAT IS A DSL
- 21:44SIMPLE DSL EXAMPLE
- 24:21THE APPLY FUNCTION
- 26:31WHAT IS THE KOTLIN-DSL
- 27:08PS: CONVERT TO K IN TWO GIT PHASES
- 28:07CONVERTING OUR PLUGIN - 1
- 31:43CONVERTING OUR ANDROID APP - 2
- 34:39RECAP
- 35:43LINKS
related talks
22mUse Kotlin DSLs for your Gradle scripts
22mIntegrating Kotlin Code into the Gradle Build Process
23mUse Kotlin DSLs for Your Gradle Scripts
56mDeep Dive into the Android Gradle Plugin
37mBuild bigger, better: Gradle for large projects
33mCrash Course in building your First Gradle Plugin
42mWrite your own Android Studio Plugin and automate everything
01h 01mGradle 3.0 and beyond
