Groovy Documentation

org.gradle.api.artifacts
Interface ExternalDependency

org.gradle.api.artifacts.ModuleDependency
  org.gradle.api.artifacts.ExternalDependency
      org.gradle.api.artifacts.Dependency
All Superinterfaces:
ModuleDependency, Dependency

interface ExternalDependency
extends ModuleDependency

An ExternalDependency is a org.gradle.api.artifacts.Dependency on a source outside the current project hierarchy.

author:
Hans Dockter


Method Summary
ExternalDependency copy()

{

boolean isForce()

Returns whether or not the version of this dependency should be enforced in the case of version conflicts.

ExternalDependency setForce(boolean force)

Sets whether or not the version of this dependency should be enforced in the case of version conflicts.

 
Methods inherited from interface ModuleDependency
addArtifact, copy, exclude, getArtifacts, getConfiguration, getExcludeRules, isTransitive, setTransitive
 
Methods inherited from interface Dependency
contentEquals, copy, getGroup, getName, getVersion
 

Method Detail

copy

public ExternalDependency copy()
{@inheritDoc}


isForce

public boolean isForce()
Returns whether or not the version of this dependency should be enforced in the case of version conflicts.


setForce

public ExternalDependency setForce(boolean force)
Sets whether or not the version of this dependency should be enforced in the case of version conflicts.
param:
force Whether to force this version or not.
return:
this


 

Groovy Documentation