Search in sources :

Example 1 with DependencyConstraintSet

use of org.gradle.api.artifacts.DependencyConstraintSet in project gradle by gradle.

the class DependenciesAwareVersionCatalogBuilder method build.

@Override
public DefaultVersionCatalog build() {
    if (shouldAmendModel) {
        DependencySet allDependencies = dependenciesConfiguration.getAllDependencies();
        DependencyConstraintSet allDependencyConstraints = dependenciesConfiguration.getAllDependencyConstraints();
        Set<ModuleIdentifier> seen = Sets.newHashSet();
        collectDependencies(allDependencies, seen);
        collectConstraints(allDependencyConstraints, seen);
    }
    shouldAmendModel = false;
    return super.build();
}
Also used : DependencySet(org.gradle.api.artifacts.DependencySet) DependencyConstraintSet(org.gradle.api.artifacts.DependencyConstraintSet) ModuleIdentifier(org.gradle.api.artifacts.ModuleIdentifier) DefaultModuleIdentifier(org.gradle.api.internal.artifacts.DefaultModuleIdentifier)

Aggregations

DependencyConstraintSet (org.gradle.api.artifacts.DependencyConstraintSet)1 DependencySet (org.gradle.api.artifacts.DependencySet)1 ModuleIdentifier (org.gradle.api.artifacts.ModuleIdentifier)1 DefaultModuleIdentifier (org.gradle.api.internal.artifacts.DefaultModuleIdentifier)1