Use tasks from other projects


I have a Java library project which I am intend to share with other team who can use this as a library. My Java project’s build.gradle also has few useful tasks that I would like to share with other team so they don’t have to write it again. E.g. task to generate a report .

So far I am able to generate Jar of my project and use it as a dependency in other project. But I am not able to reuse any tasks from my master project .

I read one related old thread suggesting creating a custom plugin. Is this the only option?

Thank you.