Increase compatibility between gradle versions. 

Increase compatibility between gradle versions. Thanks to @michel-kraemer for this.