Describable, VersionConstraint@Incubating public interface MutableVersionConstraint extends VersionConstraint
| Modifier and Type | Method | Description |
|---|---|---|
String |
getBranch() |
Returns the branch to select versions from.
|
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 |
require(String version) |
Sets the required version of this module.
|
void |
setBranch(String branch) |
Specifies the branch to select versions from.
|
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.
|
getDisplayNamegetPreferredVersion, getRejectedVersions, getRequiredVersion, getStrictVersion@Nullable String getBranch()
null, select only versions that were built from the given branch.getBranch in interface VersionConstraintvoid setBranch(@Nullable String branch)
branch - The branch, possibly null.void require(String version)
version - the required version of this modulevoid 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()