Chapter 8. Organizing Build Logic and Plugins

Plugins are one of the major building blocks of Gradle, which we have not discussed much until now. You have seen different standard plugins such as Java, Eclipse, Scala, and so on, which comes with a set of defined tasks. Developers just include the plugin, configure the required tasks, and leverage the functionalities. In this chapter, we will get an overview of what a plugin is, how you can group tasks to a plugin, how you can extract the plugin logic from a build file to buildSrc, and also how to create a standalone plugin.

Extracting build logic to buildSrc

Plugins are nothing but the group of tasks with specific orders and default configurations, which are created to provide a certain functionality. ...

Get Gradle Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.