ExternalModuleDependency

A ExternalModuleDependency is a Dependency on a module outside the current project hierarchy.

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
Adds an artifact to this dependency.
Link copied to clipboard
abstract fun artifact(@DelegatesTo(value = DependencyArtifact::class, strategy = 1) configureClosure: Closure): DependencyArtifact
abstract fun artifact(configureAction: Action<in DependencyArtifact>): DependencyArtifact
Adds an artifact to this dependency.
Link copied to clipboard
abstract fun attributes(configureAction: Action<in AttributeContainer>): ModuleDependency
Mutates the attributes of this dependency.
abstract fun attributes(action: Action<in AttributeContainer>): SELF
Configure the attribute container that provides the attributes associated with this domain object.
Link copied to clipboard
abstract fun because(@Nullable reason: @Nullable String)
Sets the reason why this dependency should be used.
Link copied to clipboard
Configures the requested capabilities of this dependency.
Link copied to clipboard
abstract fun copy(): Dependency
abstract fun copy(): ModuleDependency
Creates and returns a new dependency with the property values of this one.
Link copied to clipboard
Resets the isEndorsingStrictVersions state of this dependency.
Link copied to clipboard
abstract fun endorseStrictVersions()
Endorse version constraints with getStrictVersion strict versions} from the target module.
Link copied to clipboard
abstract fun exclude(excludeProperties: Map<String, String>): ModuleDependency
Adds an exclude rule to exclude transitive dependencies of this dependency.
Link copied to clipboard
Returns the artifacts belonging to this dependency.
Link copied to clipboard
Returns the attributes for this dependency.
Link copied to clipboard
Returns the set of capabilities that are requested for this dependency
Link copied to clipboard
Returns the exclude rules for this dependency.
Link copied to clipboard
abstract fun getGroup(): String
The group of the module.
Link copied to clipboard
abstract fun getModule(): ModuleIdentifier
The module identifier of the component.
Link copied to clipboard
abstract fun getName(): String
The name of the module.
Link copied to clipboard
@Nullable
abstract fun getReason(): @Nullable String
Returns a reason why this dependency should be used, in particular with regards to its version.
Link copied to clipboard
Returns the explicitly requested capabilities for this dependency.
Link copied to clipboard
@Nullable
abstract fun getTargetConfiguration(): @Nullable String
Returns the requested target configuration of this dependency.
Link copied to clipboard
@Nullable
abstract fun getVersion(): @Nullable String
The version of the module.
Link copied to clipboard
Returns the version constraint to be used during selection.
Link copied to clipboard
abstract fun isChanging(): Boolean
Indicates that the given dependency can have different content for the same identifier.
Link copied to clipboard
Are the getStrictVersion strict version} dependency constraints of the target module endorsed?
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.
Link copied to clipboard
abstract fun isTransitive(): Boolean
Returns whether this dependency should be resolved including or excluding its transitive dependencies.
Link copied to clipboard
To match strictly means that the given identifier needs to have equal group, module name and version.
Link copied to clipboard
Sets the dependency as "changing" or "not changing".
Link copied to clipboard
abstract fun setTargetConfiguration(@Nullable name: @Nullable String)
Sets the requested target configuration of this dependency.
Link copied to clipboard
abstract fun setTransitive(transitive: Boolean): ModuleDependency
Sets whether this dependency should be resolved including or excluding its transitive dependencies.
Link copied to clipboard
abstract fun version(configureAction: Action<in MutableVersionConstraint>)
Configures the version constraint for this dependency.