Search in sources :

Example 1 with ReadOnlyModuleArtifactsCache

use of org.gradle.api.internal.artifacts.ivyservice.modulecache.artifacts.ReadOnlyModuleArtifactsCache 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);
}
Also used : ReadOnlyModuleVersionsCache(org.gradle.api.internal.artifacts.ivyservice.modulecache.dynamicversions.ReadOnlyModuleVersionsCache) ReadOnlyModuleMetadataCache(org.gradle.api.internal.artifacts.ivyservice.modulecache.ReadOnlyModuleMetadataCache) ModuleRepositoryCaches(org.gradle.api.internal.artifacts.ivyservice.modulecache.ModuleRepositoryCaches) ReadOnlyModuleArtifactsCache(org.gradle.api.internal.artifacts.ivyservice.modulecache.artifacts.ReadOnlyModuleArtifactsCache) ReadOnlyModuleArtifactCache(org.gradle.api.internal.artifacts.ivyservice.modulecache.artifacts.ReadOnlyModuleArtifactCache)

Aggregations

ModuleRepositoryCaches (org.gradle.api.internal.artifacts.ivyservice.modulecache.ModuleRepositoryCaches)1 ReadOnlyModuleMetadataCache (org.gradle.api.internal.artifacts.ivyservice.modulecache.ReadOnlyModuleMetadataCache)1 ReadOnlyModuleArtifactCache (org.gradle.api.internal.artifacts.ivyservice.modulecache.artifacts.ReadOnlyModuleArtifactCache)1 ReadOnlyModuleArtifactsCache (org.gradle.api.internal.artifacts.ivyservice.modulecache.artifacts.ReadOnlyModuleArtifactsCache)1 ReadOnlyModuleVersionsCache (org.gradle.api.internal.artifacts.ivyservice.modulecache.dynamicversions.ReadOnlyModuleVersionsCache)1