This message was deleted.
# plugin-development
s
This message was deleted.
f
Use a settings plugin and apply the task to the root project. This way it is impossible that another task gets registered by any project, since the plugin that applies the task cannot be applied in a build script. Alternatively you could use a build service that performs the actual work. This would allow for multi registration of the task, but the work (with its state) is handled by the build service.
v
Or use a shared build service just for the information whether the task is registered already. Definitely cleaner than to cross-configure the root project with an extension that then is just there and can be seen by users.