Generating a repository cache for use on disconnected networks

Is there a way to generate a cached repository (like a .m2 folder) so that I can build on a different computer/network that does not have access to the internet? I used to be able to do this before the repository type changed.

Gradle should automatically create a cache under ~/.gradle. I think you’ll need to use the --offline flag when you are disconnected to avoid the network calls.

From what I recall, a Gradle cache cannot currently be transferred to, and subsequently used from, another machine, at least not if its root path changes. Best try for yourself.