DependencyLockingNotationConverterTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Normalize `ModuleIdentifier`

This commit reworks the `ComponentModuleIdentifier`/`ComponentModuleSelector`/`ModuleVersionSelector`

classes to use `ModuleIdentifier` under the hood, instead of storing denormalized strings. This has

the advantage that we can reduce the use of the module identifier factory, which is called very

often during dependency resolution. Sharing instances reduces the need for conversions, and makes

comparisons faster.

    • -1
    • +2
    ./DependencyLockingNotationConverterTest.groovy
  1. … 164 more files in changeset.
Simplify DependencyLockingNotationConverter

- Remove (now) unused code

- Fail on "org:foo:bar:1.0" notation

    • -31
    • +10
    ./DependencyLockingNotationConverterTest.groovy
  1. … 2 more files in changeset.
Enable updating a subset of locked dependencies

The feature is triggered by the "--update-locks org:foo,org:bar" command

line flag.

This filters out the constraints for dependencies to update and applies

the other constraints as "prefer" instead of "strict".

Fixes #4906

    • -5
    • +22
    ./DependencyLockingNotationConverterTest.groovy
  1. … 14 more files in changeset.
Minor error message improvement

    • -1
    • +1
    ./DependencyLockingNotationConverterTest.groovy
  1. … 3 more files in changeset.
Improve test coverage

Issue #3182

    • -0
    • +70
    ./DependencyLockingNotationConverterTest.groovy
  1. … 11 more files in changeset.