Plugin Extensions & Configurable DSLs
Give your Gradle plugin a clean configuration DSL using extension objects, properties, and conventions for a polished user experience.
Configuring a Plugin
A good plugin lets users customize its behaviour through a readable block in their build script. Gradle calls this an extension — it is how plugins like the Java plugin expose settings.
What Is an Extension?
An extension is a plain object your plugin registers under a name. Users set its properties in a matching DSL block, and your tasks read those values.
All lessons in this course
- Understanding Gradle Plugins
- Building Binary Plugins
- Applying & Publishing Plugins
- Plugin Extensions & Configurable DSLs