Allow for gradle 2.3 builds

Account for the plugin manager changes made in gradle and causing build failures when including the plugin while using gradle version 2.2

See MavenPlugin.java here for the changes that were duplicated from the gradle project.
https://github.com/gradle/gradle/commit/dd3508282a1f951a614fac20d1dceeeebd18b7f0