Groovy Documentation

org.gradle.api.artifacts
[Java] Interface ExternalDependency

org.gradle.api.artifacts.Dependency
  org.gradle.api.artifacts.ExternalDependency
      org.gradle.plugins.ide.idea.model.ModuleDependency
All Superinterfaces:
Dependency, ModuleDependency

public interface ExternalDependency
extends ModuleDependency

An ExternalDependency is a Dependency on a source outside the current project hierarchy.

Authors:
Hans Dockter


Method Summary
ExternalDependency copy()

{@inheritDoc}

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 class ModuleDependency
addToNode, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

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.
Parameters:
force - Whether to force this version or not.
Returns:
this


 

Groovy Documentation