Dependency

interface Dependency(source)

A 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.

Inheritors

Properties

Link copied to clipboard
val ARCHIVES_CONFIGURATION: String = "archives"
Link copied to clipboard
val CLASSIFIER: String = "m:classifier"
Link copied to clipboard
val DEFAULT_CONFIGURATION: String = "default"

Functions

Link copied to clipboard
abstract fun because(@Nullable reason: String)
Sets the reason why this dependency should be used.
Link copied to clipboard
abstract fun contentEquals(dependency: Dependency): Boolean
Returns whether two dependencies have identical values for their properties.
Link copied to clipboard
abstract fun copy(): Dependency
Creates and returns a new dependency with the property values of this one.
Link copied to clipboard
@Nullable
abstract fun getGroup(): String
Returns the group of this dependency.
Link copied to clipboard
abstract fun getName(): String
Returns the name of this dependency.
Link copied to clipboard
@Nullable
abstract fun getReason(): String
Returns a reason why this dependency should be used, in particular with regards to its version.
Link copied to clipboard
@Nullable
abstract fun getVersion(): String
Returns the version of this dependency.