use of org.gradle.api.internal.artifacts.ivyservice.projectmodule.AggregatingProjectArtifactBuilder 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);
}
Aggregations