Interface MutableVersionConstraint
- All Superinterfaces:
VersionConstraint
A configurable version constraint. This is exposed to the build author, so that one can express
more constraints on a version,
- Since:
- 4.4
-
Method Summary
Modifier and TypeMethodDescriptionvoidSets the preferred version of this module.voidDeclares a list of rejected versions.voidRejects all versions of this component.voidSets the version as strict, meaning that if any other dependency version for this module disagrees with this version, resolution will fail.Methods inherited from interface VersionConstraint
getPreferredVersion, getRejectedVersions
-
Method Details
-
prefer
Sets the preferred version of this module. Any other rejection/strict constraint will be overriden.- Parameters:
version- the preferred version of this module
-
strictly
Sets the version as strict, meaning that if any other dependency version for this module disagrees with this version, resolution will fail.- Parameters:
version- the strict version to be used for this module
-
reject
Declares a list of rejected versions. If such a version is found during dependency resolution, it will not be selected.- Parameters:
versions- the rejected versions- Since:
- 4.5
-
rejectAll
void rejectAll()Rejects all versions of this component. Can be used to declare that a component is incompatible with another (typically, cannot have both a 2 different implementations of the same API).- Since:
- 4.5
-