Running gradle without internet connection in jumpbox

We have build a custom gradle plugin with tasks for devops. This needs to be packaged into the jumpbox where we don’t have internet connection. Any suggestion?

One option is to run gradle in some box and copy the gradle’s cache folder to the jumpbox and execute the gradle command in jumpbox with offline option. But I am not sure, how reliable is this option?

Thanks, -Sridharan

It’s not something that we test for, but it has worked for me in practice.

Another option is to use a flatDir repo: