You could work this out,
1) make yourself a virtual machine (that has internet access)
2) run gradle init and then gradlew build
3) check the diff of your filesystem to see what was downloaded and where
4) make a zip/script of that stuff for your offline machine