final gradle snippets moved to the plugin.