packages
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")
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)
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)
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)