Utilities to deal with Configuration instances.
| Type Params | Return Type | Name and description |
|---|---|---|
|
static Configuration |
asConfiguration(Project project, Object configurationThingy)Tries to resolve a configuration from the provided object. |
|
static java.util.List<Configuration> |
asConfigurations(Project project, Iterable<?> configurationThings)Converts a collection of items to configurations. |
Tries to resolve a configuration from the provided object.
project - Project contextconfigurationThingy - A configuration instance of something convertible to a string.Converts a collection of items to configurations. Closures are evaluated as well.
configurationThings - Iterable list of objects that can be converted directly to
Configuration instances or indirectly by being convertible to strings.
Returned collections, providers, closures etc. will be recursively evaluated.