VersionConstraint@Incubating public interface MutableVersionConstraint extends VersionConstraint
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getBranch() |
Returns the branch to select versions from.
|
void |
prefer(java.lang.String version) |
Sets the preferred version of this module.
|
void |
reject(java.lang.String... versions) |
Declares a list of rejected versions.
|
void |
rejectAll() |
Rejects all versions of this component.
|
void |
require(java.lang.String version) |
Sets the required version of this module.
|
void |
setBranch(java.lang.String branch) |
Specifies the branch to select versions from.
|
void |
strictly(java.lang.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, getRejectedVersions, getRequiredVersion, getStrictVersion@Nullable java.lang.String getBranch()
null, select only versions that were built from the given branch.getBranch in interface VersionConstraintvoid setBranch(@Nullable
java.lang.String branch)
branch - The branch, possibly null.void require(java.lang.String version)
version - the required version of this modulevoid prefer(java.lang.String version)
version - the preferred version of this modulevoid strictly(java.lang.String version)
version - the strict version to be used for this modulevoid reject(java.lang.String... versions)
versions - the rejected versionsvoid rejectAll()