@Incubating public interface MutableVersionConstraint extends VersionConstraint
| Modifier and Type | Method and 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 |
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.
|
getPreferredVersion, getRejectedVersions@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 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()