compatibility with previous versions of gradle