Search in sources :

Example 1 with DefaultDependencyConstraintSet

use of org.gradle.api.internal.artifacts.DefaultDependencyConstraintSet in project gradle by gradle.

the class DefaultConfiguration method initAllDependencyConstraints.

private synchronized void initAllDependencyConstraints() {
    if (allDependencyConstraints != null) {
        return;
    }
    inheritedDependencyConstraints = CompositeDomainObjectSet.create(DependencyConstraint.class, ownDependencyConstraints);
    for (Configuration configuration : this.extendsFrom) {
        inheritedDependencyConstraints.addCollection(configuration.getAllDependencyConstraints());
    }
    allDependencyConstraints = new DefaultDependencyConstraintSet(Describables.of(displayName, "all dependency constraints"), inheritedDependencyConstraints);
}
Also used : DefaultDependencyConstraintSet(org.gradle.api.internal.artifacts.DefaultDependencyConstraintSet) ResolvedConfiguration(org.gradle.api.artifacts.ResolvedConfiguration) ResolvedProjectConfiguration(org.gradle.api.internal.artifacts.ivyservice.resolveengine.projectresult.ResolvedProjectConfiguration) DefaultLenientConfiguration(org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration) Configuration(org.gradle.api.artifacts.Configuration) DefaultDependencyConstraint(org.gradle.api.internal.artifacts.dependencies.DefaultDependencyConstraint) DependencyConstraint(org.gradle.api.artifacts.DependencyConstraint)

Aggregations

Configuration (org.gradle.api.artifacts.Configuration)1 DependencyConstraint (org.gradle.api.artifacts.DependencyConstraint)1 ResolvedConfiguration (org.gradle.api.artifacts.ResolvedConfiguration)1 DefaultDependencyConstraintSet (org.gradle.api.internal.artifacts.DefaultDependencyConstraintSet)1 DefaultDependencyConstraint (org.gradle.api.internal.artifacts.dependencies.DefaultDependencyConstraint)1 DefaultLenientConfiguration (org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration)1 ResolvedProjectConfiguration (org.gradle.api.internal.artifacts.ivyservice.resolveengine.projectresult.ResolvedProjectConfiguration)1