O'Reilly logo

Gradle Essentials by Abhinandan, Kunal Dabir

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required