classes

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

Add specified classes to current filters.

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

Example:

classes("*.foo.Bar", "*.M?Class")

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

Add specified classes 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 someClasses = ["*.foo.Bar", "*.M?Class"]
...
classes(someClasses)

Example for Kotlin:

val someClasses = listOf("*.foo.Bar", "*.M?Class")
...
classes(someClasses)

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

Add specified classes 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 excludedClass: Provider<String> = ...
...
classes(excludedClass)

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

Add specified classes 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 someClasses: Provider<List<String>> = ...
...
classes(someClasses)

abstract val classes: SetProperty<String>(source)

Classes of current filter.

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

Example:

classes.addAll("*.foo.Bar", "*.M?Class")