Download dependencies from artifactory

Hi all, I’m new to snap and trying to create a snapcraft.yaml.

I have 3 questions:

  1. I have already a pipline process that build the Jar and place it in an artifactory. Is it possible to create a snap which should be able to download jar from artifactory?

  2. Download jre from artifactory

  3. How can I bundle the downloaded dependencies in my snap ?

So, the idea is to bring all the dependencies with the snap. so the client wont need to install all the prerequisites by himself.