Simple play icon Course
Skills Expanded

Play by Play: Customizing Gradle with Plugins

by Tim Berglund

Learn how to customize builds with the Gradle plugin API, adding domain-specific language to the build tool itself.

What you'll learn

Most builds start out simple and end up complex. Gradle is designed to handle this complexity naturally through its easy-to-use plugin API. More than just a way to script together a few custom scripts, Gradle plugins have the ability to alter the domain model of the build tool itself, letting you express your complex build requirements in simple and elegant extensions to Gradle's DSL. In the course, you'll see Tim create a plugin to help build Asciidoctor presentations, starting from boilerplate build and ending up with a fully customized, published plugin consumed from the plugin portal. The course materials are available at: https://github.com/tlberglund/asciidoctor-presentation.

Table of contents

Which Plugin Architecture?
3mins
Speaking Your Language
15mins
The Plugin API
10mins
Extending the Domain Model
10mins
Publishing to the Plugin Portal
4mins
Conclusion
2mins

About the author

Tim is a teacher, author, and technology leader with DataStax, where he serves as the Director of Training. He can frequently be found speaking at conferences in the United States and all over the world. He is the co-presenter of various O’Reilly training videos on topics ranging from Git to Mac OS X Productivity Tips to Distributed Systems, and is the author of Gradle Beyond the Basics. Follow Tim on his blog and twitter. Tim lives in Littleton, CO, USA with his wife and their youngest child.

Ready to upskill? Get started