make plugin compatible with gradle 1.6

Hi,

though I didn't completely try your plugin, I needed to make it compatible with the current Gradle release.
This is only kind of a quick fix, but it would be the minimal change to create a working plugin.

Regards,
Tobias