Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Improve readability of reject selectors for strict constraints

- Use Maven-style open ranges `(,)` instead of Ivy-style `],[`

- Concatenate multiple ranges with `&` instead of `-`

    • -7
    • +7
    ./DefaultMutableVersionConstraintTest.groovy
  1. … 7 more files in changeset.
Add unit test to illustrate the behavior when an empty list of rejects is used

    • -0
    • +13
    ./DefaultMutableVersionConstraintTest.groovy
  1. … 1 more file in changeset.
Implement `rejectAll` on mutable version constraint

This commit leverages the prefer/reject infrastructure of version constraints

to implement incompatible module constraints. Internally, the rejection

constraint is implemented as:

- prefer empty version (aka, tells no preference)

- reject `+` (which is "reject any version starting with an empty string")

    • -0
    • +13
    ./DefaultMutableVersionConstraintTest.groovy
  1. … 8 more files in changeset.
Add a `reject` method to `MutableVersionConstraint`

This is the first step towards supporting rejected versions. It will allow the use of `reject` in the DSL,

but support is not complete yet.

    • -0
    • +44
    ./DefaultMutableVersionConstraintTest.groovy
  1. … 2 more files in changeset.
Ensure MutableVersionConstraint does not have null preferredVersion

While the interface for `VersionConstraint` declared that version was

`@Nullable`, in reality we prevented this when constructing an immutable

version constraint. This meant that `MutableVersionConstraint.asImmutable()`

converted null values to empty strings.

This changes the contract so that `VersionConstraint.preferredVersion` is no

longer `@Nullable`, and an empty string is consistently used to define a

'missing' preferred version, for all implementations of `VersionConstraint`.

    • -0
    • +33
    ./DefaultImmutableVersionConstraintTest.groovy
  1. … 6 more files in changeset.
Add code coverage for `DefaultImmutableVersionConstraint`

Issue #3305

    • -0
    • +101
    ./DefaultImmutableVersionConstraintTest.groovy
  1. … 1 more file in changeset.
Add basic test coverage for `DefaultMutableVersionConstraint`

    • -0
    • +100
    ./DefaultMutableVersionConstraintTest.groovy