Search in sources :

Example 1 with DefaultMinimalDependency

use of org.gradle.api.internal.artifacts.dependencies.DefaultMinimalDependency in project gradle by gradle.

the class DependencyValueSource method obtain.

@Override
public MinimalExternalModuleDependency obtain() {
    DependencyModel data = getParameters().getDependencyData().get();
    ImmutableVersionConstraint version = data.getVersion();
    return new DefaultMinimalDependency(DefaultModuleIdentifier.newId(data.getGroup(), data.getName()), new DefaultMutableVersionConstraint(version));
}
Also used : ImmutableVersionConstraint(org.gradle.api.internal.artifacts.ImmutableVersionConstraint) DefaultMutableVersionConstraint(org.gradle.api.internal.artifacts.dependencies.DefaultMutableVersionConstraint) DefaultMinimalDependency(org.gradle.api.internal.artifacts.dependencies.DefaultMinimalDependency)

Aggregations

ImmutableVersionConstraint (org.gradle.api.internal.artifacts.ImmutableVersionConstraint)1 DefaultMinimalDependency (org.gradle.api.internal.artifacts.dependencies.DefaultMinimalDependency)1 DefaultMutableVersionConstraint (org.gradle.api.internal.artifacts.dependencies.DefaultMutableVersionConstraint)1