use of org.gradle.api.internal.artifacts.dependencies.DefaultPluginDependency in project gradle by gradle.
the class PluginDependencyValueSource method obtain.
@Override
public PluginDependency obtain() {
String pluginName = getParameters().getPluginName().get();
PluginModel data = getParameters().getConfig().get().getPlugin(pluginName);
ImmutableVersionConstraint version = data.getVersion();
return new DefaultPluginDependency(data.getId(), new DefaultMutableVersionConstraint(version));
}
Aggregations