packages

abstract fun packages(vararg names: String)(source)

Add all classes in specified package and its subpackages to current filters.

It is acceptable to use * and ? wildcards, * means any number of arbitrary characters (including no chars), ? means one arbitrary character.

Example:

packages("foo.b?r", "com.*.example")

abstract fun packages(names: Iterable<String>)(source)

Add all classes in specified package and its subpackages to current filters.

It is acceptable to use * and ? wildcards, * means any number of arbitrary characters (including no chars), ? means one arbitrary character.

Example for Groovy:

def somePackages = ["foo.b?r", "com.*.example"]

packages(somePackages)

Example for Kotlin:

val somePackages = listOf("foo.b?r", "com.*.example")
...
packages(somePackages)

abstract fun packages(vararg names: Provider<String>)(source)

Add all classes in specified package and its subpackages to current filters.

Used for lazy setup.

It is acceptable to use * and ? wildcards, * means any number of arbitrary characters (including no chars), ? means one arbitrary character.

Example:

val classA: Provider<String> = ...
val classB: Provider<String> = ...
packages(classA, classB)

abstract fun packages(names: Provider<Iterable<String>>)(source)

Add all classes in specified package and its subpackages to current filters.

Used for lazy setup.

It is acceptable to use * and ? wildcards, * means any number of arbitrary characters (including no chars), ? means one arbitrary character.

Example:

val somePackages: Provider<List<String>> = ...
...
packages(somePackages)