changing the Plugin.groovy to use the Task Interface instead of lower level classes