May be I am late here. The best bet is download the gradle-x.x.x-bin.zip file manually and copy in to the directory - <user's home directory >/.gradle/wrapper/dists/gradle-x.x.x-bin/<some_random_chars>/
then run your gradlew commands then it will not try to download from internet