upgraded download task for new gradle version