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 |
createLocalRoleFocusedConfiguration(String dependencyScopedConfigurationName, String resolvableConfigurationName, boolean visible)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, boolean visible)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. |
|
public void |
createRoleFocusedConfigurations(String dependencyScopedConfigurationName, String resolvableConfigurationName, String consumableConfigurationName, boolean visible, Action<? super AttributeContainer> attributes)Creates three configurations that are related to each other. |
|
public void |
createSingleOutgoingConfiguration(String configurationName, boolean visible)Creates a single configuration to be used for outgoing publications. |
|
public void |
createSingleOutgoingConfiguration(String configurationName, boolean visible, Action<? super AttributeContainer> attributes)Creates a single configuration to be used for outgoing publications. |
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.
Configurations created with this method will be visible.
dependencyScopedConfigurationName - The name of a configuration against which dependencies wil be declared.resolvableConfigurationName - The name of a configuration which can be resolved.Creates 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.visible - Whether the configurations should be visible.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.visible - Whether configurations should be marked visible or invisible.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.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.visible - Whether configurations should be marked visible or invisible.Creates a single configuration to be used for outgoing publications.
Very useful for sharing internal outputs between subprojects.
configurationName - Name of outgoing configuration.visible - Whether the configuration is visible.Creates a single configuration to be used for outgoing publications.
Very useful for sharing internal outputs between subprojects.
configurationName - Name of outgoing configuration.visible - Whether the configuration is visible.attributes - Action to configure attributes for resolvable and consumable configurations.