Welcome @mikee,
You would need to write a plugin and apply it to the root build. Then you can access all subprojects using project.getSubprojects()
. For a plugin that you only need in your own project, you can put the plugin sources in the buildSrc
folder or define the plugin class directly in your root build script.
Please follow our documentation and samples for more details. You can start here:
https://docs.gradle.org/current/userguide/custom_plugins.html#sec:writing_a_simple_plugin