under

fun under(packageName: String): String

Converts a base package name into a recursive package pattern matching the package and all its subpackages.

Example:

packages.under("com.acme.domain") // produces "com.acme.domain.." which matches "com.acme.domain.model", etc.

Return

The normalized package pattern.

Parameters

packageName

The base package name (e.g., "com.acme.domain").


fun under(vararg packageNames: String): List<String>

Converts multiple base package names into recursive package patterns matching the packages and all their subpackages.


fun under(packageNames: List<String>): List<String>

Converts a list of base package names into recursive package patterns matching the packages and all their subpackages.