Setup gradle in singularity image

Hi, i want to setup gradle within a singularity image and run then in a serve which don’t have external download access