Search in sources :

Example 1 with BuildCacheController

use of org.gradle.caching.internal.controller.BuildCacheController in project gradle by gradle.

the class RootBuildCacheControllerSettingsProcessor method process.

public static void process(GradleInternal gradle) {
    // before configuring them. This achieves that.
    if (gradle.isRootBuild()) {
        BuildCacheController rootController = gradle.getServices().get(BuildCacheController.class);
        RootBuildCacheControllerRef rootControllerRef = gradle.getServices().get(RootBuildCacheControllerRef.class);
        rootControllerRef.set(rootController);
    }
}
Also used : RootBuildCacheControllerRef(org.gradle.caching.internal.controller.RootBuildCacheControllerRef) BuildCacheController(org.gradle.caching.internal.controller.BuildCacheController)

Aggregations

BuildCacheController (org.gradle.caching.internal.controller.BuildCacheController)1 RootBuildCacheControllerRef (org.gradle.caching.internal.controller.RootBuildCacheControllerRef)1