ClientModule

Deprecated

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.

Client modules dependencies are deprecated and will be removed in Gradle 9.0. Please use component metadata rules instead.

See also

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
Link copied to clipboard
abstract fun addDependency(dependency: ModuleDependency)
Add a dependency to the client module.
Link copied to clipboard
abstract fun artifact(configureClosure: Closure): DependencyArtifact
Link copied to clipboard
abstract fun attributes(configureAction: Action<in AttributeContainer>): ModuleDependency
abstract fun attributes(action: Action<in AttributeContainer>): SELF
Link copied to clipboard
abstract fun because(reason: String)
Link copied to clipboard
Link copied to clipboard
abstract fun contentEquals(dependency: Dependency): Boolean
Link copied to clipboard
abstract fun copy(): ClientModule
abstract fun copy(): Dependency
abstract fun copy(): ExternalDependency
abstract fun copy(): ModuleDependency
Link copied to clipboard
Link copied to clipboard
abstract fun endorseStrictVersions()
Link copied to clipboard
abstract fun exclude(excludeProperties: Map<String, String>): ModuleDependency
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns all the dependencies added to the client module.
Link copied to clipboard
Link copied to clipboard
abstract fun getGroup(): String
Link copied to clipboard
abstract fun getId(): String
Returns the id of the client module.
Link copied to clipboard
abstract fun getModule(): ModuleIdentifier
Link copied to clipboard
abstract fun getName(): String
Link copied to clipboard
abstract fun getReason(): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun getVersion(): String
Link copied to clipboard
Link copied to clipboard
abstract fun isChanging(): Boolean
Link copied to clipboard
Link copied to clipboard
abstract fun isForce(): Boolean
Link copied to clipboard
abstract fun isTransitive(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun setTargetConfiguration(name: String)
Link copied to clipboard
abstract fun setTransitive(transitive: Boolean): ModuleDependency
Link copied to clipboard
abstract fun version(configureAction: Action<in MutableVersionConstraint>)