notDependOnModule

Asserts that selected modules do not depend on the specified target module.

Parameters

targetPath

The Gradle path or glob pattern of the module that should not be depended on.


Asserts that selected modules do not depend on any of the specified target modules.

Parameters

targetPaths

The list of Gradle paths or glob patterns of the modules that should not be depended on.


fun notDependOnModule(vararg targetPaths: String): ModulesRuleBuilder

Asserts that selected modules do not depend on any of the specified target modules.

Parameters

targetPaths

The vararg list of Gradle paths or glob patterns of the modules that should not be depended on.


Asserts that selected modules do not depend on any module matching the predicate.

Parameters

predicate

Predicate checking target module path.


fun notDependOnModule(description: String, predicate: (String) -> Boolean): ModulesRuleBuilder

Asserts that selected modules do not depend on any module matching the predicate.

Parameters

description

A descriptive string for the predicate used in violations.

predicate

Predicate checking target module path.