How to make my plugin auto-execute included tasks

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.

For anyone who stumbles upon this in the future, I got a very good answer here: