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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.