Search in sources :

Example 1 with ResolvedProjectConfiguration

use of org.gradle.api.internal.artifacts.ivyservice.resolveengine.projectresult.ResolvedProjectConfiguration in project gradle by gradle.

the class DefaultConfiguration method markReferencedProjectConfigurationsObserved.

private void markReferencedProjectConfigurationsObserved(InternalState requestedState, ResolverResults results) {
    ProjectInternal consumingProject = domainObjectContext.getProject();
    ProjectState consumingProjectState = consumingProject == null ? null : consumingProject.getOwner();
    for (ResolvedProjectConfiguration projectResult : results.getResolvedLocalComponents().getResolvedProjectConfigurations()) {
        ProjectState targetProjectState = projectStateRegistry.stateFor(projectResult.getId());
        dependencyObservedBroadcast.dependencyObserved(consumingProjectState, targetProjectState, requestedState, projectResult);
    }
}
Also used : ProjectInternal(org.gradle.api.internal.project.ProjectInternal) ProjectState(org.gradle.api.internal.project.ProjectState) ResolvedProjectConfiguration(org.gradle.api.internal.artifacts.ivyservice.resolveengine.projectresult.ResolvedProjectConfiguration)

Example 2 with ResolvedProjectConfiguration

use of org.gradle.api.internal.artifacts.ivyservice.resolveengine.projectresult.ResolvedProjectConfiguration in project gradle by gradle.

the class DefaultConfiguration method markReferencedProjectConfigurationsObserved.

private void markReferencedProjectConfigurationsObserved(final InternalState requestedState) {
    for (ResolvedProjectConfiguration projectResult : cachedResolverResults.getResolvedLocalComponents().getResolvedProjectConfigurations()) {
        ProjectInternal project = projectFinder.getProject(projectResult.getId().getProjectPath());
        ConfigurationInternal targetConfig = (ConfigurationInternal) project.getConfigurations().getByName(projectResult.getTargetConfiguration());
        targetConfig.markAsObserved(requestedState);
    }
}
Also used : ProjectInternal(org.gradle.api.internal.project.ProjectInternal) ResolvedProjectConfiguration(org.gradle.api.internal.artifacts.ivyservice.resolveengine.projectresult.ResolvedProjectConfiguration)

Aggregations

ResolvedProjectConfiguration (org.gradle.api.internal.artifacts.ivyservice.resolveengine.projectresult.ResolvedProjectConfiguration)2 ProjectInternal (org.gradle.api.internal.project.ProjectInternal)2 ProjectState (org.gradle.api.internal.project.ProjectState)1