As stated in the title, I would like to be able to call a task (from a custom plugin I wrote) in an external build.gradle file. If possible, I would also like to be able to pass arguments (that can be interpreted as command line arguments by the plugin) to the task.
How can I do this? I’ve searched the web for hours and hours, with no result.
The main point is that the custom plugin shouldn’t be altered anymore, as it’s use isn’t pinned to this project only - meaning it should be possible to use it for other projects too, therefore it should be as abstract as possible.
I hope someone understands me, as I’m not very good at explaining ^^
Any help or answer is appreciated!