Search in sources :

Example 1 with DefaultPluginDependency

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));
}
Also used : ImmutableVersionConstraint(org.gradle.api.internal.artifacts.ImmutableVersionConstraint) DefaultMutableVersionConstraint(org.gradle.api.internal.artifacts.dependencies.DefaultMutableVersionConstraint) DefaultPluginDependency(org.gradle.api.internal.artifacts.dependencies.DefaultPluginDependency)

Aggregations

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