Fixed a bug where the plugin may failed to use the Gradle version set in the project properties and used the one set in the global settings instead.