Search in sources :

Example 1 with DependencyVerificationOverride

use of org.gradle.api.internal.artifacts.ivyservice.ivyresolve.verification.DependencyVerificationOverride in project gradle by gradle.

the class DefaultConfigurationResolver method resolveArtifacts.

@Override
public void resolveArtifacts(ConfigurationInternal configuration, ResolverResults results) {
    ArtifactResolveState resolveState = (ArtifactResolveState) results.getArtifactResolveState();
    ResolvedGraphResults graphResults = resolveState.graphResults;
    VisitedArtifactsResults artifactResults = resolveState.artifactsResults;
    TransientConfigurationResultsBuilder transientConfigurationResultsBuilder = resolveState.transientConfigurationResultsBuilder;
    TransientConfigurationResultsLoader transientConfigurationResultsFactory = new TransientConfigurationResultsLoader(transientConfigurationResultsBuilder, graphResults);
    DefaultLenientConfiguration result = new DefaultLenientConfiguration(configuration, resolveState.failures, artifactResults, resolveState.fileDependencyResults, transientConfigurationResultsFactory, artifactTransforms, buildOperationExecutor, dependencyVerificationOverride);
    results.artifactsResolved(new DefaultResolvedConfiguration(result), result);
}
Also used : TransientConfigurationResultsBuilder(org.gradle.api.internal.artifacts.ivyservice.resolveengine.oldresult.TransientConfigurationResultsBuilder) TransientConfigurationResultsLoader(org.gradle.api.internal.artifacts.ivyservice.resolveengine.oldresult.TransientConfigurationResultsLoader) ResolvedGraphResults(org.gradle.api.internal.artifacts.ivyservice.resolveengine.oldresult.ResolvedGraphResults) VisitedArtifactsResults(org.gradle.api.internal.artifacts.ivyservice.resolveengine.artifact.VisitedArtifactsResults) DependencyVerificationOverride(org.gradle.api.internal.artifacts.ivyservice.ivyresolve.verification.DependencyVerificationOverride)

Example 2 with DependencyVerificationOverride

use of org.gradle.api.internal.artifacts.ivyservice.ivyresolve.verification.DependencyVerificationOverride in project gradle by gradle.

the class DependencyManagementBuildScopeServices method createDependencyVerificationOverride.

DependencyVerificationOverride createDependencyVerificationOverride(StartParameterResolutionOverride startParameterResolutionOverride, BuildOperationExecutor buildOperationExecutor, ChecksumService checksumService, SignatureVerificationServiceFactory signatureVerificationServiceFactory, DocumentationRegistry documentationRegistry, ListenerManager listenerManager, BuildCommencedTimeProvider timeProvider, ServiceRegistry serviceRegistry) {
    DependencyVerificationOverride override = startParameterResolutionOverride.dependencyVerificationOverride(buildOperationExecutor, checksumService, signatureVerificationServiceFactory, documentationRegistry, timeProvider, () -> serviceRegistry.get(GradleProperties.class));
    registerBuildFinishedHooks(listenerManager, override);
    return override;
}
Also used : DependencyVerificationOverride(org.gradle.api.internal.artifacts.ivyservice.ivyresolve.verification.DependencyVerificationOverride) GradleProperties(org.gradle.api.internal.properties.GradleProperties)

Aggregations

DependencyVerificationOverride (org.gradle.api.internal.artifacts.ivyservice.ivyresolve.verification.DependencyVerificationOverride)2 VisitedArtifactsResults (org.gradle.api.internal.artifacts.ivyservice.resolveengine.artifact.VisitedArtifactsResults)1 ResolvedGraphResults (org.gradle.api.internal.artifacts.ivyservice.resolveengine.oldresult.ResolvedGraphResults)1 TransientConfigurationResultsBuilder (org.gradle.api.internal.artifacts.ivyservice.resolveengine.oldresult.TransientConfigurationResultsBuilder)1 TransientConfigurationResultsLoader (org.gradle.api.internal.artifacts.ivyservice.resolveengine.oldresult.TransientConfigurationResultsLoader)1 GradleProperties (org.gradle.api.internal.properties.GradleProperties)1