Making a gradle-1.11 compatible version of the plugin

Created a new branch for gradle-1.11, corresponding changes to make the compiled plugin work with gradle-1.11