Downloads all dependencies for a gradle build without running the build. This cache can then be used to generate a read only cache of gradle dependencies .
plugins {
id("de.lancom.genesis.dependency-cache") version "<version>"
}No configuration possible.
Downloads all dependencies for the current build. This cache can then be used to generate a read only cache of gradle dependencies .
In the following example /gradle-cache holds the global gradle cache and /dependency-cache contains the read only
dependency cache.
gradle cacheDependencies --no-daemon -g /gradle-cache
rsync --exclude=\*.lock --exclude=gc.properties -rv --ignore-existing /gradle-cache/caches/modules-2 /dependency-cache
GRADLE_RO_DEP_CACHE=/dependency-cache gradle assemble An example project can be found in the examples/project.
Execute ./gradlew -p example cacheDependencies to run tasks of the example project.