Groovy version of plugin