@Incubating public interface MutableVersionConstraint extends VersionConstraint
| Modifier and Type | Method and Description |
|---|---|
void |
prefer(String version)
Sets the preferred version of this module.
|
void |
reject(String... versions)
Declares a list of rejected versions.
|
void |
rejectAll()
Rejects all versions of this component.
|
void |
strictly(String version)
Sets the version as strict, meaning that if any other dependency version for this module disagrees with
this version, resolution will fail.
|
getPreferredVersion, getRejectedVersionsvoid prefer(String version)
version - the preferred version of this modulevoid strictly(String version)
version - the strict version to be used for this modulevoid reject(String... versions)
versions - the rejected versionsvoid rejectAll()