In a project we build our applications in ephemeral containers, therefore we lose all the artifacts of the dependencies for each build. Luckily there is a way to reuse the dependency cache by either copying or sharing the cache, as described in the manual here Learning the Basics.
We decided to use the sharing solution.
To keep the dependency cache up to date, as over time new dependencies could be defined, we want to automate filling up the dependency cache automatically, e.g: every night at a specific time.
We’re created our own BOM for the different dependencies.
In an empty Gradle project we just want to define this platform BOM and would like that Gradle will download all the dependency artifacts (including the transitive dependendencies) and fill up the dependency cache.
Is there a way, maybe over the Gradle API, to download all the artifacts and put it into the gradle cache?
Thanks for your help