gradle
8.3

# ExternalDependency

interface ExternalDependency : ModuleDependency, ModuleVersionSelector

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

#### Inheritors

ExternalModuleDependency

## Functions

addArtifact
Link copied to clipboard
abstract fun addArtifact(artifact: DependencyArtifact): ModuleDependency
artifact
Link copied to clipboard
abstract fun artifact(configureClosure: Closure): DependencyArtifact
attributes
Link copied to clipboard
abstract fun attributes(configureAction: Action<out Any>): ModuleDependency
abstract fun attributes(action: Action<out Any>): SELF
because
Link copied to clipboard
abstract fun because(reason: String)
capabilities
Link copied to clipboard
abstract fun capabilities(configureAction: Action<out Any>): ModuleDependency
contentEquals
Link copied to clipboard
abstract fun contentEquals(dependency: Dependency): Boolean
copy
Link copied to clipboard
abstract fun copy(): Dependency
abstract fun copy(): ExternalDependency
doNotEndorseStrictVersions
Link copied to clipboard
abstract fun doNotEndorseStrictVersions()
endorseStrictVersions
Link copied to clipboard
abstract fun endorseStrictVersions()
exclude
Link copied to clipboard
abstract fun exclude(excludeProperties: Map<String, String>): ModuleDependency
getArtifacts
Link copied to clipboard
abstract fun getArtifacts(): Set<DependencyArtifact>
getAttributes
Link copied to clipboard
abstract fun getAttributes(): AttributeContainer
getExcludeRules
Link copied to clipboard
abstract fun getExcludeRules(): Set<ExcludeRule>
getGroup
Link copied to clipboard
abstract fun getGroup(): String
getModule
Link copied to clipboard
abstract fun getModule(): ModuleIdentifier
getName
Link copied to clipboard
abstract fun getName(): String
getReason
Link copied to clipboard
abstract fun getReason(): String
getRequestedCapabilities
Link copied to clipboard
abstract fun getRequestedCapabilities(): List<Capability>
getTargetConfiguration
Link copied to clipboard
abstract fun getTargetConfiguration(): String
getVersion
Link copied to clipboard
abstract fun getVersion(): String
getVersionConstraint
Link copied to clipboard
abstract fun getVersionConstraint(): VersionConstraint
Returns the version constraint to be used during selection.
isEndorsingStrictVersions
Link copied to clipboard
abstract fun isEndorsingStrictVersions(): Boolean
isForce
Link copied to clipboard
abstract fun isForce(): Boolean
Returns whether or not the version of this dependency should be enforced in the case of version conflicts.
isTransitive
Link copied to clipboard
abstract fun isTransitive(): Boolean
matchesStrictly
Link copied to clipboard
abstract fun matchesStrictly(identifier: ModuleVersionIdentifier): Boolean
setTargetConfiguration
Link copied to clipboard
abstract fun setTargetConfiguration(name: String)
setTransitive
Link copied to clipboard
abstract fun setTransitive(transitive: Boolean): ModuleDependency
version
Link copied to clipboard
abstract fun version(configureAction: Action<out Any>)
Configures the version constraint for this dependency.

## Properties

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