withModule

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

See also

ComponentMetadataHandler.withModule

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

Return

this

Parameters

T

the rule to be added

id

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

See also

ComponentMetadataHandler.withModule