Package org.gradle.api.artifacts
Interface ClientModule
- All Superinterfaces:
- Dependency,- ExternalDependency,- ExternalModuleDependency,- HasAttributes,- HasConfigurableAttributes<ModuleDependency>,- ModuleDependency,- ModuleVersionSelector
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:
- 
Field SummaryFields inherited from interface org.gradle.api.artifacts.DependencyARCHIVES_CONFIGURATION, CLASSIFIER, DEFAULT_CONFIGURATION
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddDependency(ModuleDependency dependency) Deprecated.Add a dependency to the client module.copy()Deprecated.Creates and returns a new dependency with the property values of this one.Deprecated.Returns all the dependencies added to the client module.getId()Deprecated.Returns the id of the client module.Methods inherited from interface org.gradle.api.artifacts.Dependencybecause, contentEquals, getGroup, getName, getReason, getVersionMethods inherited from interface org.gradle.api.artifacts.ExternalDependencygetVersionConstraint, isForce, versionMethods inherited from interface org.gradle.api.artifacts.ExternalModuleDependencyisChanging, setChangingMethods inherited from interface org.gradle.api.artifacts.ModuleDependencyaddArtifact, artifact, artifact, attributes, capabilities, doNotEndorseStrictVersions, endorseStrictVersions, exclude, getArtifacts, getAttributes, getCapabilitySelectors, getExcludeRules, getRequestedCapabilities, getTargetConfiguration, isEndorsingStrictVersions, isTransitive, setTargetConfiguration, setTransitiveMethods inherited from interface org.gradle.api.artifacts.ModuleVersionSelectorgetGroup, getModule, getName, getVersion, matchesStrictly
- 
Method Details- 
addDependencyDeprecated.Add a dependency to the client module. Such a dependency is transitive dependency for the project that has a dependency on the client module.- Parameters:
- dependency- The dependency to add to the client module.
- See Also:
 
- 
getIdString getId()Deprecated.Returns the id of the client module. This is usually only used for internal handling of the client module.- Returns:
- The id of the client module
 
- 
getDependenciesSet<ModuleDependency> getDependencies()Deprecated.Returns all the dependencies added to the client module.- See Also:
 
- 
copyClientModule copy()Deprecated.Creates and returns a new dependency with the property values of this one.- Specified by:
- copyin interface- Dependency
- Specified by:
- copyin interface- ExternalDependency
- Specified by:
- copyin interface- ExternalModuleDependency
- Specified by:
- copyin interface- ModuleDependency
- Returns:
- The copy. Never returns null.
 
 
-