FWIW: One thing which should be kept in mind as well is that the build process must not download random things and it them. I.e. the build itself is supposed to succeed without any network access. I mention this here because I found such network activity while looking at my build log:
I did a quick count of gradle dependencies (jars + poms). We are looking at 960 downloads we will need to handle.
How do they handle this in the firefox repository? Do they have a list of dependencies somewhere?
They are using the sdkmanager which contains the direct dependencies (there are also transitive dependencies downloaded through the gradle process). I have a final count of 186 artifacts to download (after deduping).
We can do this through RBM but it will be a little ugly as we need to download and then copy all artifacts to correct folder structure under a repo directory.
However the process for creating this archive does not look very simple.
It also says "Gradle and the downloaded Maven dependencies can be both redistributed publicly" so I'm wondering if we could get a copy of that archive to use it.