How to make my plugin auto-execute included tasks


(Noah Andrews) #1

I’ve written a plugin (which currently just lives in buildSrc) that creates several tasks whose names are based on values provided by the user. How can I make it so that they execute whenever the build script that applies the plugin is run? It doesn’t need to run at any specific point in the execution phase.


(Noah Andrews) #2

For anyone who stumbles upon this in the future, I got a very good answer here: https://stackoverflow.com/a/48573270/4651874