Skip to content
This repository was archived by the owner on Sep 4, 2023. It is now read-only.

Latest commit

 

History

History
41 lines (27 loc) · 1.23 KB

File metadata and controls

41 lines (27 loc) · 1.23 KB

Genesis Dependency Cache Plugin

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 .

Activation

plugins {
    id("de.lancom.genesis.dependency-cache") version "<version>"
}

Configuration

No configuration possible.

Tasks

cacheDependencies

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 

Example

An example project can be found in the examples/project.

Execute ./gradlew -p example cacheDependencies to run tasks of the example project.