Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Rename inheritStrictVersions() -> endorseStrictVersions() (#10755)

This name change more clearly communicates the semantics of the

feature from a users point of view.

This commit also removes all mentions of 'inheriting' AND 'forSubgraph'.

There have been some leftovers in documentation/comments that

would have been misleading in the future. To make sure we catch all,

this also updates all variable/method/package names.

    • -7
    • +7
    ./model/AbstractMutableModuleComponentResolveMetadata.java
    • -3
    • +3
    ./model/AbstractRealisedModuleResolveMetadataSerializationHelper.java
    • -1
    • +1
    ./model/AbstractVariantBackedConfigurationMetadata.java
    • -8
    • +8
    ./model/ConfigurationBoundExternalDependencyMetadata.java
    • -4
    • +4
    ./model/ForcedDependencyMetadataWrapper.java
    • -14
    • +14
    ./model/GradleDependencyMetadata.java
    • -1
    • +1
    ./model/LazyToRealisedModuleComponentResolveMetadataHelper.java
    • -4
    • +4
    ./model/ModuleDependencyMetadataWrapper.java
  1. … 60 more files in changeset.
Rename inheritStrictVersions() -> endorseStrictVersions()

This is more clearly communicating the semantics of the feature

from a users point of view.

The commit also removes all mentions of 'inheriting' AND 'forSubgraph'.

There have been some leftovers in documentation/comments that

will be misleading in the future. To make sure we catch all,

I also updated all variable/method/package names.

    • -7
    • +7
    ./model/AbstractMutableModuleComponentResolveMetadata.java
    • -3
    • +3
    ./model/AbstractRealisedModuleResolveMetadataSerializationHelper.java
    • -1
    • +1
    ./model/AbstractVariantBackedConfigurationMetadata.java
    • -8
    • +8
    ./model/ConfigurationBoundExternalDependencyMetadata.java
    • -4
    • +4
    ./model/ForcedDependencyMetadataWrapper.java
    • -14
    • +14
    ./model/GradleDependencyMetadata.java
    • -1
    • +1
    ./model/LazyToRealisedModuleComponentResolveMetadataHelper.java
    • -4
    • +4
    ./model/ModuleDependencyMetadataWrapper.java
  1. … 60 more files in changeset.
Rename inheritStrictVersions() -> endorseStrictVersions()

This is more clearly communicating the semantics of the feature

from a users point of view.

The commit also removes all mentions of 'inheriting' AND 'forSubgraph'.

There have been some leftovers in documentation/comments that

will be misleading in the future. To make sure we catch all,

I also updated all variable/method/package names.

    • -7
    • +7
    ./model/AbstractMutableModuleComponentResolveMetadata.java
    • -3
    • +3
    ./model/AbstractRealisedModuleResolveMetadataSerializationHelper.java
    • -1
    • +1
    ./model/AbstractVariantBackedConfigurationMetadata.java
    • -8
    • +8
    ./model/ConfigurationBoundExternalDependencyMetadata.java
    • -4
    • +4
    ./model/ForcedDependencyMetadataWrapper.java
    • -14
    • +14
    ./model/GradleDependencyMetadata.java
    • -1
    • +1
    ./model/LazyToRealisedModuleComponentResolveMetadataHelper.java
    • -4
    • +4
    ./model/ModuleDependencyMetadataWrapper.java
  1. … 60 more files in changeset.
Rename inheritStrictVersions() -> endorseStrictVersions()

This is more clearly communicating the semantics of the feature

from a users point of view.

The commit also removes all mentions of 'inheriting' AND 'forSubgraph'.

There have been some leftovers in documentation/comments that

will be misleading in the future. To make sure we catch all,

I also updated all variable/method/package names.

    • -7
    • +7
    ./model/AbstractMutableModuleComponentResolveMetadata.java
    • -3
    • +3
    ./model/AbstractRealisedModuleResolveMetadataSerializationHelper.java
    • -1
    • +1
    ./model/AbstractVariantBackedConfigurationMetadata.java
    • -8
    • +8
    ./model/ConfigurationBoundExternalDependencyMetadata.java
    • -4
    • +4
    ./model/ForcedDependencyMetadataWrapper.java
    • -14
    • +14
    ./model/GradleDependencyMetadata.java
    • -1
    • +1
    ./model/LazyToRealisedModuleComponentResolveMetadataHelper.java
    • -4
    • +4
    ./model/ModuleDependencyMetadataWrapper.java
  1. … 60 more files in changeset.
Fix application of dependency rules in realized metadata version

The rules for dependencies and dependency constraints were not applied

if the variant itself was added by a rule.

This commit also no longer attempts to apply any rule to the realized

version of 'pure maven configurations'. For Maven, we always use the

derived variants and always use variant matching. Therefore, rules are

never applied to the legacy configurations, but only to the derived

variants.

Follow up to #10368

    • -2
    • +1
    ./model/ivy/RealisedIvyModuleResolveMetadata.java
    • -14
    • +16
    ./model/maven/RealisedMavenModuleResolveMetadata.java
  1. … 1 more file in changeset.
Fix application of dependency rules in realized metadata version

The rules for dependencies and dependency constraints were not applied

if the itself variant was added by a rule.

This commit also no longer attempts to apply any rule to the realized

version of 'pure maven configurations'. For Maven, we always use the

derived variants and always use variant matching. Therefore, rules are

never applied to the legacy configurations, but only to the derived

variants.

Follow up to #10368

    • -2
    • +1
    ./model/ivy/RealisedIvyModuleResolveMetadata.java
    • -14
    • +16
    ./model/maven/RealisedMavenModuleResolveMetadata.java
  1. … 1 more file in changeset.
Fix application of dependency rules in realized metadata version

The rules for dependencies and dependency constraints were not applied

if the itself variant was added by a rule.

Follow up to #10368

    • -2
    • +1
    ./model/ivy/RealisedIvyModuleResolveMetadata.java
    • -5
    • +7
    ./model/maven/RealisedMavenModuleResolveMetadata.java
  1. … 1 more file in changeset.
Updates to terminology for clarity

- `inheritStrictConstraints` -> `inheritStrictVersions`

- `notInheritStrictConstraints` -> `doNotInheritStrictVersions`

    • -1
    • +1
    ./model/ConfigurationBoundExternalDependencyMetadata.java
    • -2
    • +2
    ./model/ForcedDependencyMetadataWrapper.java
    • -2
    • +2
    ./model/ModuleDependencyMetadataWrapper.java
  1. … 27 more files in changeset.
Updates to terminology for clarity

- `inheritStrictConstraints` -> `inheritStrictVersions`

- `notInheritStrictConstraints` -> `doNotInheritStrictVersions`

    • -1
    • +1
    ./model/ConfigurationBoundExternalDependencyMetadata.java
    • -2
    • +2
    ./model/ForcedDependencyMetadataWrapper.java
    • -2
    • +2
    ./model/ModuleDependencyMetadataWrapper.java
  1. … 27 more files in changeset.
Updates to terminology for clarity

- `inheritStrictConstraints` -> `inheritStrictVersions`

- `notInheritStrictConstraints` -> `doNotInheritStrictVersions`

    • -1
    • +1
    ./model/ConfigurationBoundExternalDependencyMetadata.java
    • -2
    • +2
    ./model/ForcedDependencyMetadataWrapper.java
    • -2
    • +2
    ./model/ModuleDependencyMetadataWrapper.java
  1. … 27 more files in changeset.
Updates to terminology for clarity

- `inheritStrictConstraints` -> `inheritStrictVersions`

- `notInheritStrictConstraints` -> `doNotInheritStrictVersions`

    • -1
    • +1
    ./model/ConfigurationBoundExternalDependencyMetadata.java
    • -2
    • +2
    ./model/ForcedDependencyMetadataWrapper.java
    • -2
    • +2
    ./model/ModuleDependencyMetadataWrapper.java
  1. … 27 more files in changeset.
Updates to terminology for clarity

- `inheritStrictConstraints` -> `inheritStrictVersions`

- `notInheritStrictConstraints` -> `doNotInheritStrictVersions`

    • -1
    • +1
    ./model/ConfigurationBoundExternalDependencyMetadata.java
    • -2
    • +2
    ./model/ForcedDependencyMetadataWrapper.java
    • -2
    • +2
    ./model/ModuleDependencyMetadataWrapper.java
  1. … 27 more files in changeset.
Updates to terminology for clarity

- `inheritStrictConstraints` -> `inheritStrictVersions`

- `notInheritStrictConstraints` -> `doNotInheritStrictVersions`

    • -1
    • +1
    ./model/ConfigurationBoundExternalDependencyMetadata.java
    • -2
    • +2
    ./model/ForcedDependencyMetadataWrapper.java
    • -2
    • +2
    ./model/ModuleDependencyMetadataWrapper.java
  1. … 26 more files in changeset.
Rework `forSubgraph` as implied by `strictly`

This commit removes a dedicated `forSubgraph` flag

on version constraints, so that it is _implied_ by

strict version constraints. This simplifies the behavior

of `strictly`, making it closer to the intuitive semantics,

while maintaining the ability to fail the build if a

consumer brings an incompatible version in the graph.

As a consequence, _strict dependencies_ now express that

the producer preference overrides whatever is found in

its own dependency graph. It is closer to the "nearest

first" semantics of Maven, while not having its drawbacks

(ordering in particular).

    • -1
    • +1
    ./ivypublish/DefaultIvyModulePublishMetadata.java
    • -1
    • +1
    ./model/ConfigurationBoundExternalDependencyMetadata.java
    • -2
    • +2
    ./model/ForcedDependencyMetadataWrapper.java
    • -2
    • +2
    ./model/ModuleDependencyMetadataWrapper.java
  1. … 72 more files in changeset.
Rework `forSubgraph` as implied by `strictly`

This commit removes a dedicated `forSubgraph` flag

on version constraints, so that it is _implied_ by

strict version constraints. This simplifies the behavior

of `strictly`, making it closer to the intuitive semantics,

while maintaining the ability to fail the build if a

consumer brings an incompatible version in the graph.

As a consequence, _strict dependencies_ now express that

the producer preference overrides whatever is found in

its own dependency graph. It is closer to the "nearest

first" semantics of Maven, while not having its drawbacks

(ordering in particular).

    • -1
    • +1
    ./ivypublish/DefaultIvyModulePublishMetadata.java
    • -1
    • +1
    ./model/ConfigurationBoundExternalDependencyMetadata.java
    • -2
    • +2
    ./model/ForcedDependencyMetadataWrapper.java
    • -2
    • +2
    ./model/ModuleDependencyMetadataWrapper.java
  1. … 74 more files in changeset.
Rework `forSubgraph` as implied by `strictly`

This commit removes a dedicated `forSubgraph` flag

on version constraints, so that it is _implied_ by

strict version constraints. This simplifies the behavior

of `strictly`, making it closer to the intuitive semantics,

while maintaining the ability to fail the build if a

consumer brings an incompatible version in the graph.

As a consequence, _strict dependencies_ now express that

the producer preference overrides whatever is found in

its own dependency graph. It is closer to the "nearest

first" semantics of Maven, while not having its drawbacks

(ordering in particular).

    • -1
    • +1
    ./ivypublish/DefaultIvyModulePublishMetadata.java
    • -1
    • +1
    ./model/ConfigurationBoundExternalDependencyMetadata.java
    • -2
    • +2
    ./model/ForcedDependencyMetadataWrapper.java
    • -2
    • +2
    ./model/ModuleDependencyMetadataWrapper.java
  1. … 72 more files in changeset.
Rework `forSubgraph` as implied by `strictly`

This commit removes a dedicated `forSubgraph` flag

on version constraints, so that it is _implied_ by

strict version constraints. This simplifies the behavior

of `strictly`, making it closer to the intuitive semantics,

while maintaining the ability to fail the build if a

consumer brings an incompatible version in the graph.

As a consequence, _strict dependencies_ now express that

the producer preference overrides whatever is found in

its own dependency graph. It is closer to the "nearest

first" semantics of Maven, while not having its drawbacks

(ordering in particular).

    • -1
    • +1
    ./ivypublish/DefaultIvyModulePublishMetadata.java
    • -1
    • +1
    ./model/ConfigurationBoundExternalDependencyMetadata.java
    • -2
    • +2
    ./model/ForcedDependencyMetadataWrapper.java
    • -2
    • +2
    ./model/ModuleDependencyMetadataWrapper.java
  1. … 72 more files in changeset.
Rework `forSubgraph` as implied by `strictly`

This commit removes a dedicated `forSubgraph` flag

on version constraints, so that it is _implied_ by

strict version constraints. This simplifies the behavior

of `strictly`, making it closer to the intuitive semantics,

while maintaining the ability to fail the build if a

consumer brings an incompatible version in the graph.

As a consequence, _strict dependencies_ now express that

the producer preference overrides whatever is found in

its own dependency graph. It is closer to the "nearest

first" semantics of Maven, while not having its drawbacks

(ordering in particular).

    • -1
    • +1
    ./ivypublish/DefaultIvyModulePublishMetadata.java
    • -1
    • +1
    ./model/ConfigurationBoundExternalDependencyMetadata.java
    • -2
    • +2
    ./model/ForcedDependencyMetadataWrapper.java
    • -2
    • +2
    ./model/ModuleDependencyMetadataWrapper.java
  1. … 72 more files in changeset.
Rework `forSubgraph` as implied by `strictly`

This commit removes a dedicated `forSubgraph` flag

on version constraints, so that it is _implied_ by

strict version constraints. This simplifies the behavior

of `strictly`, making it closer to the intuitive semantics,

while maintaining the ability to fail the build if a

consumer brings an incompatible version in the graph.

As a consequence, _strict dependencies_ now express that

the producer preference overrides whatever is found in

its own dependency graph. It is closer to the "nearest

first" semantics of Maven, while not having its drawbacks

(ordering in particular).

    • -1
    • +1
    ./ivypublish/DefaultIvyModulePublishMetadata.java
    • -1
    • +1
    ./model/ConfigurationBoundExternalDependencyMetadata.java
    • -2
    • +2
    ./model/ForcedDependencyMetadataWrapper.java
    • -2
    • +2
    ./model/ModuleDependencyMetadataWrapper.java
  1. … 72 more files in changeset.
Support variant and file derivation in realized metadata

This required a couple of changes:

- artifacts are now always explicitly serialized for each configuration

- variant derivation is implemented for variants and for configurations

in maven (derived variants) and ivy

- If a ivy module has configurations (variants) that have been added by

a rule, the realized version uses this information to opt-into

variant aware resolution

    • -3
    • +8
    ./model/AbstractConfigurationMetadata.java
    • -2
    • +2
    ./model/AbstractMutableModuleComponentResolveMetadata.java
    • -0
    • +45
    ./model/AbstractRealisedModuleResolveMetadataSerializationHelper.java
    • -8
    • +5
    ./model/DefaultConfigurationMetadata.java
    • -8
    • +60
    ./model/LazyToRealisedModuleComponentResolveMetadataHelper.java
    • -1
    • +1
    ./model/LazyVariantBackedConfigurationMetadata.java
    • -5
    • +18
    ./model/RealisedConfigurationMetadata.java
    • -0
    • +6
    ./model/UrlBackedArtifactMetadata.java
    • -18
    • +98
    ./model/ivy/RealisedIvyModuleResolveMetadata.java
    • -11
    • +26
    ./model/ivy/RealisedIvyModuleResolveMetadataSerializationHelper.java
    • -22
    • +72
    ./model/maven/RealisedMavenModuleResolveMetadata.java
    • -3
    • +10
    ./model/maven/RealisedMavenModuleResolveMetadataSerializationHelper.java
  1. … 3 more files in changeset.
Support variant and file derivation in realized metadata

This required a couple of changes:

- artifacts are now always explicitly serialized for each configuration

- variant derivation is implemented for variants and for configurations

in maven (derived variants) and ivy

- If a ivy module has configurations (variants) that have been added by

a rule, the realized version uses this information to opt-into

variant aware resolution

    • -2
    • +2
    ./model/AbstractMutableModuleComponentResolveMetadata.java
    • -0
    • +45
    ./model/AbstractRealisedModuleResolveMetadataSerializationHelper.java
    • -1
    • +1
    ./model/DefaultConfigurationMetadata.java
    • -8
    • +60
    ./model/LazyToRealisedModuleComponentResolveMetadataHelper.java
    • -1
    • +1
    ./model/LazyVariantBackedConfigurationMetadata.java
    • -0
    • +6
    ./model/UrlBackedArtifactMetadata.java
    • -17
    • +97
    ./model/ivy/RealisedIvyModuleResolveMetadata.java
    • -11
    • +18
    ./model/ivy/RealisedIvyModuleResolveMetadataSerializationHelper.java
    • -21
    • +68
    ./model/maven/RealisedMavenModuleResolveMetadata.java
    • -2
    • +5
    ./model/maven/RealisedMavenModuleResolveMetadataSerializationHelper.java
  1. … 2 more files in changeset.
Serialize dependency artifacts in for realized variant of metadata

Addition to #10372

    • -2
    • +3
    ./model/AbstractRealisedModuleResolveMetadataSerializationHelper.java
    • -4
    • +4
    ./model/AbstractVariantBackedConfigurationMetadata.java
    • -1
    • +11
    ./model/GradleDependencyMetadata.java
    • -4
    • +4
    ./model/LazyToRealisedModuleComponentResolveMetadataHelper.java
  1. … 3 more files in changeset.
Serialize dependency artifacts in for realized variant of metadata

Addition to #10372

    • -2
    • +3
    ./model/AbstractRealisedModuleResolveMetadataSerializationHelper.java
    • -4
    • +4
    ./model/AbstractVariantBackedConfigurationMetadata.java
    • -1
    • +10
    ./model/GradleDependencyMetadata.java
    • -4
    • +4
    ./model/LazyToRealisedModuleComponentResolveMetadataHelper.java
  1. … 3 more files in changeset.
Make evaluation of base variant rules lazy

    • -1
    • +1
    ./model/AbstractConfigurationMetadata.java
    • -23
    • +3
    ./model/AbstractLazyModuleComponentResolveMetadata.java
    • -1
    • +1
    ./model/AbstractMutableModuleComponentResolveMetadata.java
    • -0
    • +153
    ./model/LazyRuleAwareWithBaseConfigurationMetadata.java
    • -11
    • +3
    ./model/LazyVariantBackedConfigurationMetadata.java
  1. … 2 more files in changeset.
Make evaluation of base variant rules lazy

    • -1
    • +1
    ./model/AbstractConfigurationMetadata.java
    • -23
    • +3
    ./model/AbstractLazyModuleComponentResolveMetadata.java
    • -1
    • +1
    ./model/AbstractMutableModuleComponentResolveMetadata.java
    • -0
    • +153
    ./model/LazyRuleAwareWithBaseConfigurationMetadata.java
    • -11
    • +3
    ./model/LazyVariantBackedConfigurationMetadata.java
  1. … 2 more files in changeset.
Add a spike implementation of a Homebrew repository, that can locate pre-built libraries in the local Homebrew repository.

    • -1
    • +1
    ./model/AbstractConfigurationMetadata.java
    • -1
    • +1
    ./model/AbstractModuleComponentResolveMetadata.java
  1. … 5 more files in changeset.
Add removeAllFiles() to variant files modification API

Files from an existing 'base' are now also transferred to the new

variant (but can then be removed with removeAllFiles()). This makes:

- The behavior more consistent (before everything was transferred

*except* for the files)

- The 'enrich plain ivy with variants' use case better as you do not

manually have to re-add the files that are already in the configuration

metadata

    • -1
    • +5
    ./model/AbstractLazyModuleComponentResolveMetadata.java
    • -5
    • +8
    ./model/LazyVariantBackedConfigurationMetadata.java
  1. … 13 more files in changeset.
Add removeAllFiles() to variant files modification API

Files from an existing 'base' are now also transferred to the new

variant (but can then be removed with removeAllFiles()). This makes:

- The behavior more consistent (before everything was transferred

*except* for the files)

- The 'enrich plain ivy with variants' use case better as you do not

manually have to re-add the files that are already in the configuration

metadata

    • -1
    • +5
    ./model/AbstractLazyModuleComponentResolveMetadata.java
    • -5
    • +8
    ./model/LazyVariantBackedConfigurationMetadata.java
  1. … 11 more files in changeset.
Add removeAllFiles() to variant files modification API

Files from an existing 'base' are now also transferred to the new

variant (but can then be removed with removeAllFiles()). This makes:

- The behavior more consistent (before everything was transferred

*except* for the files)

- The 'enrich plain ivy with variants' use case better as you do not

manually have to re-add the files that are already in the configuration

metadata

    • -1
    • +5
    ./model/AbstractLazyModuleComponentResolveMetadata.java
    • -5
    • +8
    ./model/LazyVariantBackedConfigurationMetadata.java
  1. … 13 more files in changeset.
Add API method to ad a variant without base

Also extend documentation about 'base' and throw errors if a

non-existing base is defined.

    • -6
    • +16
    ./model/AbstractLazyModuleComponentResolveMetadata.java
  1. … 5 more files in changeset.