Fix for gradle on travis