ModulesThat

Fluent API for defining filtering conditions on Gradle modules.

Functions

Link copied to clipboard
fun allOf(vararg blocks: ModulesThat.() -> Unit): ModulesRuleBuilder

Matches if all of the nested condition blocks are satisfied.

Link copied to clipboard
fun anyOf(vararg blocks: ModulesThat.() -> Unit): ModulesRuleBuilder

Matches if any of the nested condition blocks are satisfied.

Link copied to clipboard

Restricts the rules to modules whose Gradle path matches any of the specified glob patterns.

Restricts the rules to modules whose Gradle path matches the specified glob pattern.

Link copied to clipboard

Restricts the rules to modules with an exact matching Gradle path in the specified paths.

infix fun haveNamePath(predicate: (String) -> Boolean): ModulesRuleBuilder

Restricts the rules to modules with a Gradle path matching the given predicate.


Restricts the rules to modules with an exact matching Gradle path in the specified list of paths.

Link copied to clipboard
infix fun matching(predicate: (Module) -> Boolean): ModulesRuleBuilder

Restricts the rules to modules matching the specified predicate.

Link copied to clipboard
fun noneOf(vararg blocks: ModulesThat.() -> Unit): ModulesRuleBuilder

Matches if none of the nested condition blocks are satisfied.

Link copied to clipboard

Satisfies an arbitrary custom predicate logic.