use of org.gradle.api.internal.artifacts.dependencies.DefaultMutableVersionConstraint in project gradle by gradle.
the class AbstractDependencyMetadataAdapter method version.
@Override
public T version(Action<? super MutableVersionConstraint> configureAction) {
DefaultMutableVersionConstraint mutableVersionConstraint = new DefaultMutableVersionConstraint(getVersionConstraint());
configureAction.execute(mutableVersionConstraint);
ModuleDependencyMetadata dependencyMetadata = getOriginalMetadata().withRequestedVersion(mutableVersionConstraint);
updateMetadata(dependencyMetadata);
return Cast.uncheckedCast(this);
}
Aggregations