Reuse Gradle task in multiple projects

Hello there!

I am new to Gradle and trying to understand how can I reuse the same task (that uses some custom methods) in multiple projects?


You should probably have a look at Sharing Build Logic between Subprojects.
Those convention plugins can also be published and then consumed by multiple builds, or included in multiple builds using Composing builds.