ClientModule, ExternalDependency, ExternalModuleDependency, FileCollectionDependency, ModuleDependency, ProjectDependency, SelfResolvingDependencypublic interface Dependency
Dependency represents a dependency on the artifacts from a particular source. A source can be an Ivy
 module, a Maven POM, another Gradle project, a collection of Files, etc... A source can have zero or more artifacts.| Modifier and Type | Field | Description | 
|---|---|---|
| static String | ARCHIVES_CONFIGURATION | |
| static String | CLASSIFIER | |
| static String | DEFAULT_CONFIGURATION | 
| Modifier and Type | Method | Description | 
|---|---|---|
| void | because(String reason) | Sets the reason why this dependency should be used. | 
| boolean | contentEquals(Dependency dependency) | Returns whether two dependencies have identical values for their properties. | 
| Dependency | copy() | Creates and returns a new dependency with the property values of this one. | 
| String | getGroup() | Returns the group of this dependency. | 
| String | getName() | Returns the name of this dependency. | 
| String | getReason() | Returns a reason why this dependency should be used, in particular with regards to its version. | 
| String | getVersion() | Returns the version of this dependency. | 
static final String DEFAULT_CONFIGURATION
static final String ARCHIVES_CONFIGURATION
static final String CLASSIFIER
@Nullable String getGroup()
String getName()
@Nullable String getVersion()
boolean contentEquals(Dependency dependency)
dependency - The dependency to compare this dependency withDependency copy()
@Incubating @Nullable String getReason()
@Incubating void because(@Nullable String reason)