Search in sources :

Example 1 with CacheLockReleasingProjectArtifactBuilder

use of org.gradle.api.internal.artifacts.ivyservice.projectmodule.CacheLockReleasingProjectArtifactBuilder in project gradle by gradle.

the class DependencyManagementBuildScopeServices method createProjectDependencyResolver.

ProjectDependencyResolver createProjectDependencyResolver(LocalComponentRegistry localComponentRegistry, ServiceRegistry serviceRegistry, CacheLockingManager cacheLockingManager, ComponentIdentifierFactory componentIdentifierFactory) {
    // This doesn't seem to consistently load all ProjectArtifactBuilder instances provided by modules.
    // For embedded integration tests, I'm not convinced that the CompositeProjectArtifactBuilder will always be registered.
    List<ProjectArtifactBuilder> delegateBuilders = serviceRegistry.getAll(ProjectArtifactBuilder.class);
    ProjectArtifactBuilder artifactBuilder = new AggregatingProjectArtifactBuilder(delegateBuilders);
    artifactBuilder = new CacheLockReleasingProjectArtifactBuilder(artifactBuilder, cacheLockingManager);
    return new ProjectDependencyResolver(localComponentRegistry, artifactBuilder, componentIdentifierFactory);
}
Also used : ProjectDependencyResolver(org.gradle.api.internal.artifacts.ivyservice.projectmodule.ProjectDependencyResolver) AggregatingProjectArtifactBuilder(org.gradle.api.internal.artifacts.ivyservice.projectmodule.AggregatingProjectArtifactBuilder) CacheLockReleasingProjectArtifactBuilder(org.gradle.api.internal.artifacts.ivyservice.projectmodule.CacheLockReleasingProjectArtifactBuilder) ProjectArtifactBuilder(org.gradle.api.internal.artifacts.ivyservice.projectmodule.ProjectArtifactBuilder) AggregatingProjectArtifactBuilder(org.gradle.api.internal.artifacts.ivyservice.projectmodule.AggregatingProjectArtifactBuilder) CacheLockReleasingProjectArtifactBuilder(org.gradle.api.internal.artifacts.ivyservice.projectmodule.CacheLockReleasingProjectArtifactBuilder)

Aggregations

AggregatingProjectArtifactBuilder (org.gradle.api.internal.artifacts.ivyservice.projectmodule.AggregatingProjectArtifactBuilder)1 CacheLockReleasingProjectArtifactBuilder (org.gradle.api.internal.artifacts.ivyservice.projectmodule.CacheLockReleasingProjectArtifactBuilder)1 ProjectArtifactBuilder (org.gradle.api.internal.artifacts.ivyservice.projectmodule.ProjectArtifactBuilder)1 ProjectDependencyResolver (org.gradle.api.internal.artifacts.ivyservice.projectmodule.ProjectDependencyResolver)1