Hello,
We are running a CI build of some of our Gradle applications. These builds are run inside Docker containers in an ‘empty’ system. To improve build times, we cache the dependencies of the Gradle home folder (the wrapper
and caches
directories).
Summarized, the build is split up into many modules in the following way:
- Caching:
- Fetch the cache
- Install any dependencies not in the cache (*)
- Store the cache, if anything has been updated
- In parallel (for every module, around 40):
- Restore the dependency cache
- Build the module
- Run the tests
- Report test results
The question is how to resolve all dependencies for all modules, for all configurations (the (*) step). We have tried the dependencies
task, but this only resolves the compile dependencies. We have also tried the test
task with a filter not maching any tests, but Gradle will fail because no tests are run. We have also tried enabling dependency locking, but this made no difference.
How to force resolve (and download) all dependencies for all configurations without running any actual tasks?
Thanks in advance!