api / org.gradle.api.artifacts / ExternalModuleDependency

ExternalModuleDependency

interface ExternalModuleDependency : ExternalDependency

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

Functions

copy

abstract fun copy(): ExternalModuleDependency

{@inheritDoc}

isChanging

abstract fun isChanging(): Boolean

Returns whether or not Gradle should always check for a change in the remote repository.

setChanging

abstract fun setChanging(changing: Boolean): ExternalModuleDependency

Sets whether or not Gradle should always check for a change in the remote repository. If set to true, Gradle will check the remote repository even if a dependency with the same version is already in the local cache. Defaults to false.

Inherited Functions

isForce

abstract fun isForce(): Boolean

Returns whether or not the version of this dependency should be enforced in the case of version conflicts.

setForce

abstract fun setForce(force: Boolean): ExternalDependency

Sets whether or not the version of this dependency should be enforced in the case of version conflicts.

version

abstract fun version(configureAction: Action<in MutableVersionConstraint>): Unit

Configures the version constraint for this dependency.

Inheritors

ClientModule

interface ClientModule : ExternalModuleDependency

To model a module in your dependency declarations. Usually you can either declare a single dependency artifact or you declare a module dependency that depends on a module descriptor in a repository. With a client module you can declare a module dependency without the need of a module descriptor in a remote repository.