How to provide documentation for plugins and tasks?

When you run “gradle tasks”, it prints documentation for installed tasks. How do you add that documentation for a custom plugin? I see no information about that anywhere. Also, there is apparently a similar documentation string for plugins, although I’m not sure when that is presented. How do you set that also? I noticed a “plugindev” plugin, which seems to let me declare at least the plugin description, but not the task description.

I figured out how to specify the task description and group, just by setting those properties in the task constructor. I’m still not sure about how to set similar doc strings for the plugin, although I’m not sure how those would be used anyway.