### Eclipse Workspace Patch 1.0 #P ivy-doc Index: ivyfile/configurations.html =================================================================== --- ivyfile/configurations.html (revision 829115) +++ ivyfile/configurations.html (working copy) @@ -29,13 +29,18 @@ A container for configuration elements. If this container is not present, it is assumed that the module has one public configuration called 'default'. -since 1.3 You can define a new default conf mapping on this container by specifying the defaultconfmapping attribute. +since 2.2 You can define the default conf on this container by specifying the defaultconf attribute. This attribute defines the conf mapping to use when no conf mapping is specified for a dependency in this ivy file. -A default conf mapping is very similar to the defaultconf which can be set on the dependencies tag, but it has a slightly different behaviour. -The default conf mapping not only defines the conf mapping to use when no conf mapping is specified for a dependency in this ivy file, but it also modify the way ivy interprets conf mapping with no mapped conf. In this case, Ivy will look in the default conf mapping and use the conf mapping defined in the default conf mapping for the conf for which there is no mapped conf. +since 1.3 You can define a default conf mapping on this container by specifying the defaultconfmapping attribute. -See examples on the dependency page. +This attribute modifies the way ivy interprets conf mapping with no mapped conf. In this case, Ivy will look in the default conf mapping and use the conf mapping defined in the default conf mapping for the conf for which there is no mapped conf. +In order to maintain backwards compatibility with Ivy 2.1.0 and earlier, the defaultconfmapping also provides one additional function. If no defaultconf is specified (on either the configurations tag or the dependencies tag), the defaultconfmapping becomes the default configuration for dependencies in this ivy file when no configuration is specified. In other words, in addition to altering the interpretation of individual configurations with no mapping, defaultconfmapping also performs exactly like defaultconf in the absence of a definition for defaultconf. + +If several defaultconfmapping or defaultconf attributes are defined (in the configurations tag, one or several in an included configurations file, and/or in the dependency tag, then it's only the last definition of each property which is taken into account. The others will have no effect at all. + +See examples below to clarify the behavior of these two attributes together. + since 1.4 You can activate a confmappingoverride mode for all configurations, in which case the extending configurations will override the mappings of the configurations they extend from. @@ -45,6 +50,7 @@
| defaultconf | defaultconfmapping | conf | ivy interpretation |
|---|---|---|---|
*->* | |||
| runtime | runtime->runtime | ||
| test | test->test | ||
runtime | runtime->runtime | ||
runtime | runtime->*;test->default | runtime->* | |
runtime | runtime->*;test->default | test | test->default |
runtime->*;test->default | runtime->*;test->default | ||
runtime->*;test->default | runtime | runtime->* | |
runtime->*;test->default | test | test->default |