use of org.gradle.initialization.layout.ProjectCacheDir in project gradle by gradle.
the class BuildSessionScopeServices method createCacheLayout.
ProjectCacheDir createCacheLayout(StartParameter startParameter, BuildLayoutFactory buildLayoutFactory) {
BuildLayout buildLayout = buildLayoutFactory.getLayoutFor(new BuildLayoutConfiguration(startParameter));
File cacheDir = startParameter.getProjectCacheDir() != null ? startParameter.getProjectCacheDir() : new File(buildLayout.getRootDirectory(), ".gradle");
return new ProjectCacheDir(cacheDir);
}
Aggregations