onlyBeDependedOnBy

infix fun onlyBeDependedOnBy(allowedPattern: String): ModulesRuleBuilder

Asserts that selected modules are depended on only by modules matching the specified allowed pattern.

Parameters

allowedPattern

Glob pattern of a module allowed to depend on the selected modules.


infix fun onlyBeDependedOnBy(allowedPatterns: List<String>): ModulesRuleBuilder
fun onlyBeDependedOnBy(vararg allowedPatterns: String): ModulesRuleBuilder

Asserts that selected modules are depended on only by modules matching the specified allowed patterns.

Parameters

allowedPatterns

Glob patterns of modules allowed to depend on the selected modules.


Asserts that selected modules are depended on only by modules matching the predicate.

Parameters

predicate

Predicate checking dependent module path.


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

Asserts that selected modules are depended on only by modules matching the predicate.

Parameters

description

A descriptive string for the predicate used in violations.

predicate

Predicate checking dependent module path.