SubgraphVersionConstraintsFeatureInteractionIntegrationTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
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).

    • -507
    • +0
    ./SubgraphVersionConstraintsFeatureInteractionIntegrationTest.groovy
  1. … 77 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).

    • -507
    • +0
    ./SubgraphVersionConstraintsFeatureInteractionIntegrationTest.groovy
  1. … 79 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).

    • -507
    • +0
    ./SubgraphVersionConstraintsFeatureInteractionIntegrationTest.groovy
  1. … 77 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).

    • -507
    • +0
    ./SubgraphVersionConstraintsFeatureInteractionIntegrationTest.groovy
  1. … 77 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).

    • -507
    • +0
    ./SubgraphVersionConstraintsFeatureInteractionIntegrationTest.groovy
  1. … 77 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).

    • -507
    • +0
    ./SubgraphVersionConstraintsFeatureInteractionIntegrationTest.groovy
  1. … 77 more files in changeset.
Remove deprecated constructor

    • -1
    • +1
    ./SubgraphVersionConstraintsFeatureInteractionIntegrationTest.groovy
  1. … 2 more files in changeset.
Remove deprecated constructor

    • -1
    • +1
    ./SubgraphVersionConstraintsFeatureInteractionIntegrationTest.groovy
  1. … 2 more files in changeset.
Remove deprecated constructor

    • -1
    • +1
    ./SubgraphVersionConstraintsFeatureInteractionIntegrationTest.groovy
  1. … 2 more files in changeset.
Remove deprecated constructor

    • -1
    • +1
    ./SubgraphVersionConstraintsFeatureInteractionIntegrationTest.groovy
  1. … 2 more files in changeset.
Remove deprecated constructor

    • -1
    • +1
    ./SubgraphVersionConstraintsFeatureInteractionIntegrationTest.groovy
  1. … 2 more files in changeset.
Merge pull request #10183 from rpalcolea/subgraph-version-constraints-tests

SubgraphVersionConstraintsIntegrationTest: add test for downgrade dependency when substitution rule is present

    • -0
    • +67
    ./SubgraphVersionConstraintsFeatureInteractionIntegrationTest.groovy
Adjust test to latest changes

    • -3
    • +1
    ./SubgraphVersionConstraintsFeatureInteractionIntegrationTest.groovy
A version constraint with isForSubgraph() is not requiredOnly()

    • -8
    • +8
    ./SubgraphVersionConstraintsFeatureInteractionIntegrationTest.groovy
  1. … 2 more files in changeset.
A version constraint with isForSubgraph() is not requiredOnly()

    • -8
    • +8
    ./SubgraphVersionConstraintsFeatureInteractionIntegrationTest.groovy
  1. … 2 more files in changeset.
Add MutableVersionConstraint.notForSubgraph() DSL method

The main use case for this are component metadata rules.

    • -0
    • +64
    ./SubgraphVersionConstraintsFeatureInteractionIntegrationTest.groovy
  1. … 3 more files in changeset.
Add MutableVersionConstraint.notForSubgraph() DSL method

The main use case for this are component metadata rules.

    • -0
    • +64
    ./SubgraphVersionConstraintsFeatureInteractionIntegrationTest.groovy
  1. … 3 more files in changeset.
Collect subgraph constraints after substitution

Otherwise, constraints from edges that get substituted leak into

the result.

This change also avoids the additional iteration over the dependencies

list as the own constraints of a node can be collected late (they are

only required later when the children of a node are visited).

    • -1
    • +54
    ./SubgraphVersionConstraintsFeatureInteractionIntegrationTest.groovy
  1. … 1 more file in changeset.
Collect subgraph constraints after substitution

Otherwise, constraints from edges that get substituted leak into

the result.

This change also avoids the additional iteration over the dependencies

list as the own constraints of a node can be collected late (they are

only required later when the children of a node are visited).

    • -1
    • +54
    ./SubgraphVersionConstraintsFeatureInteractionIntegrationTest.groovy
  1. … 1 more file in changeset.
Move subgraph with substitution rule to SubgraphVersionConstraintsFeatureInteractionIntegrationTest

Signed-off-by: Roberto Perez Alcolea <rperezalcolea@netflix.com>

    • -0
    • +67
    ./SubgraphVersionConstraintsFeatureInteractionIntegrationTest.groovy
  1. … 1 more file in changeset.
Add integration tests for subgraph version constraints

    • -0
    • +325
    ./SubgraphVersionConstraintsFeatureInteractionIntegrationTest.groovy
  1. … 2 more files in changeset.
Add integration tests for subgraph version constraints

    • -0
    • +325
    ./SubgraphVersionConstraintsFeatureInteractionIntegrationTest.groovy
  1. … 2 more files in changeset.