Could not find bundletool.jar

Hello I am Running Android builds on the Linux headless machine and I am facing issue with the finding dependent files for the build, I figured out that I need to update the gradle or run the builds offline. Is there any way that I can run all the gradle builds offline?