api / org.gradle.kotlin.dsl / org.gradle.api.artifacts.Configuration / exclude

exclude

fun Configuration.exclude(group: String? = null, module: String? = null): Configuration

Adds an exclude rule to exclude transitive dependencies for all dependencies of this configuration. You can also add exclude rules per-dependency. See ModuleDependency.exclude.

Parameters

group - the optional group identifying the dependencies to be excluded.

module - the optional module name identifying the dependencies to be excluded.

Return
this