LatestVersionSelectorTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Support prefix and latest selectors in strictly

This was basically just about adding test coverage.

The assumed behavior is that `latest.release` would

accept _any_ version when used in a reject selector,

so that we can iterate on rejected versions until

we find a match.

  1. … 5 more files in changeset.
Support prefix and latest selectors in strictly

This was basically just about adding test coverage.

The assumed behavior is that `latest.release` would

accept _any_ version when used in a reject selector,

so that we can iterate on rejected versions until

we find a match.

  1. … 5 more files in changeset.
Revert "Rename `VersionSelector` to `VersionMatcher`"

This reverts commit 5046159bfc739c3d86c59411dd4b4a1c36786b81. The Nebula resolution rules plugin makes use of internal classes,

and broke with this refactoring.

  1. … 67 more files in changeset.
Rename `VersionSelector` to `VersionMatcher`

This refactor is introduced to reduce confusion: the selector corresponds to

the requested version, which can be an exact version number, a range, or

anything else. The matchers, on the other hand, match a selector. In other

words, the selector is a specification, while the matcher does the actual

work of matching.

  1. … 69 more files in changeset.
Avoid version parsing on compare by exposing only interfaces that support pre-parsed versioned

Each compare operation parses the version, causing significant object allocation and GC pressure during version sorting.

  1. … 30 more files in changeset.
Removed the responsibility for comparing versions from the VersionMatcher

- This code was originally taken from Ivy, and we don't require the selector-aware sorting.

  1. … 19 more files in changeset.
Changed VersionMatcher to be a factory for VersionSelector. Most VersionMatcher types have become VersionSelectors.

+review REVIEW-5227

    • -0
    • +77
    ./LatestVersionSelectorTest.groovy
  1. … 34 more files in changeset.