# withModule

inline fun ERROR CLASS: Symbol not found for org.gradle.api.artifacts.dsl.ComponentMetadataHandler.withModule(id: Any, rule: KClass<out ERROR CLASS: Symbol not found for org.gradle.api.artifacts.ComponentMetadataRule>): ERROR CLASS: Symbol not found for org.gradle.api.artifacts.dsl.ComponentMetadataHandler(source)
inline fun ERROR CLASS: Symbol not found for org.gradle.api.artifacts.dsl.ComponentMetadataHandler.withModule(id: Any, rule: KClass<out ERROR CLASS: Symbol not found for org.gradle.api.artifacts.ComponentMetadataRule>): ERROR CLASS: Symbol not found for org.gradle.api.artifacts.dsl.ComponentMetadataHandler(source)
inline fun ERROR CLASS: Symbol not found for org.gradle.api.artifacts.dsl.ComponentMetadataHandler.withModule(id: Any, rule: KClass<out ERROR CLASS: Symbol not found for org.gradle.api.artifacts.ComponentMetadataRule>, configureAction: ERROR CLASS: Symbol not found for org.gradle.api.Action<in ERROR CLASS: Symbol not found for org.gradle.api.ActionConfiguration>): ERROR CLASS: Symbol not found for org.gradle.api.artifacts.dsl.ComponentMetadataHandler(source)
inline fun ERROR CLASS: Symbol not found for org.gradle.api.artifacts.dsl.ComponentMetadataHandler.withModule(id: Any, rule: KClass<out ERROR CLASS: Symbol not found for org.gradle.api.artifacts.ComponentMetadataRule>, configureAction: ERROR CLASS: Symbol not found for org.gradle.api.Action<in ERROR CLASS: Symbol not found for org.gradle.api.ActionConfiguration>): ERROR CLASS: Symbol not found for org.gradle.api.artifacts.dsl.ComponentMetadataHandler(source)

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.artifacts.dsl.ComponentMetadataHandler.withModule.

#### Since

4.9

#### See also

org.gradle.api.artifacts.dsl.ComponentMetadataHandler.withModule

inline fun <T : ERROR CLASS: Symbol not found for ComponentMetadataRule> ERROR CLASS: Symbol not found for ComponentMetadataHandler.withModule(id: Any): ERROR CLASS: Symbol not found for ComponentMetadataHandler(source)
inline fun <T : ERROR CLASS: Symbol not found for ComponentMetadataRule> ERROR CLASS: Symbol not found for ComponentMetadataHandler.withModule(id: Any, configureAction: ERROR CLASS: Symbol not found for Action<in ERROR CLASS: Symbol not found for ActionConfiguration>): ERROR CLASS: Symbol not found for ComponentMetadataHandler(source)

Adds a class based rule that may modify the metadata of any resolved software component belonging to the specified module.

#### Return

this

#### Parameters

id

the module to apply this rule to in "group:module" format or as a org.gradle.api.artifacts.ModuleIdentifier

#### Type Parameters

T

the rule to be added

#### See also

ComponentMetadataHandler.withModule