use of org.gradle.api.internal.artifacts.ivyservice.modulecache.artifacts.ReadOnlyModuleArtifactCache in project gradle by gradle.
the class DependencyManagementBuildScopeServices method prepareReadOnlyModuleRepositoryCaches.
private ModuleRepositoryCaches prepareReadOnlyModuleRepositoryCaches(ArtifactCacheMetadata artifactCacheMetadata, ArtifactCacheLockingManager artifactCacheLockingManager, BuildCommencedTimeProvider timeProvider, ImmutableModuleIdentifierFactory moduleIdentifierFactory, AttributeContainerSerializer attributeContainerSerializer, MavenMutableModuleMetadataFactory mavenMetadataFactory, IvyMutableModuleMetadataFactory ivyMetadataFactory, SimpleMapInterner stringInterner, ArtifactIdentifierFileStore artifactIdentifierFileStore, ModuleSourcesSerializer moduleSourcesSerializer, ChecksumService checksumService) {
ReadOnlyModuleVersionsCache moduleVersionsCache = new ReadOnlyModuleVersionsCache(timeProvider, artifactCacheLockingManager, moduleIdentifierFactory);
ReadOnlyModuleMetadataCache moduleMetadataCache = new ReadOnlyModuleMetadataCache(timeProvider, artifactCacheLockingManager, artifactCacheMetadata, moduleIdentifierFactory, attributeContainerSerializer, mavenMetadataFactory, ivyMetadataFactory, stringInterner, moduleSourcesSerializer, checksumService);
ReadOnlyModuleArtifactsCache moduleArtifactsCache = new ReadOnlyModuleArtifactsCache(timeProvider, artifactCacheLockingManager);
ReadOnlyModuleArtifactCache moduleArtifactCache = new ReadOnlyModuleArtifactCache("module-artifact", timeProvider, artifactCacheLockingManager, artifactIdentifierFileStore.getFileAccessTracker(), artifactCacheMetadata.getCacheDir().toPath());
return new ModuleRepositoryCaches(moduleVersionsCache, moduleMetadataCache, moduleArtifactsCache, moduleArtifactCache);
}
Aggregations