public interface ConfigurationTools
Additional tools to work with configurations.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public Configuration |
asConfiguration(Object configurationThingy)Resolves an arbitrary item to a Configuration instance. |
|
public java.util.Collection<Configuration> |
asConfigurations(java.util.Collection<?> configurationThingies)Resolves arbitrary items to a collection of Configuration instances. |
|
public void |
createLocalRoleFocusedConfiguration(String dependencyScopedConfigurationName, String resolvableConfigurationName)Creates two configurations that are related to each other and which are only meant to be used within the same (sub)project. |
|
public void |
createRoleFocusedConfigurations(String dependencyScopedConfigurationName, String resolvableConfigurationName, String consumableConfigurationName)Creates three configurations that are related to each other. |
|
public void |
createRoleFocusedConfigurations(String dependencyScopedConfigurationName, String resolvableConfigurationName, String consumableConfigurationName, Action<? super AttributeContainer> attributes)Creates three configurations that are related to each other. |
Resolves an arbitrary item to a Configuration instance.
configurationThingy - Instance or Configuration or something that resolves to a string.Resolves arbitrary items to a collection of Configuration instances.
configurationThingies - Collection that might contain Configuration or string-type instancesCreates two configurations that are related to each other and which are only meant to be used within the same (sub)project.
This works on the same model as to how implementation and runtimeClasspath.
dependencyScopedConfigurationName - The name of a configuration against which dependencies wil be declared.resolvableConfigurationName - The name of a configuration which can be resolved.Creates three configurations that are related to each other.
This works on the same model as to how implementation, runtimeClasspath and
runtimeElements are related in a JVM project.
dependencyScopedConfigurationName - The name of a configuration against which dependencies wil be declared.resolvableConfigurationName - The name of a configuration which can be resolved.consumableConfigurationName - The name of a configuration that can be consumed by other subprojects.Creates three configurations that are related to each other.
This works on the same model as to how implementation, runtimeClasspath and
runtimeElements are related in a JVM project.
dependencyScopedConfigurationName - The name of a configuration against which dependencies wil be declared.resolvableConfigurationName - The name of a configuration which can be resolved.consumableConfigurationName - The name of a configuration that can be consumed by other subprojects.attributes - Action to configure attributes for resolvable and consumable configurations.