MutableVersionConstraint

A configurable version constraint. This is exposed to the build author, so that one can express more constraints on a module version.

Since

4.4

Functions

Link copied to clipboard
@Nullable
abstract fun getBranch(): @Nullable String
Returns the branch to select versions from.
Link copied to clipboard
abstract fun getDisplayName(): String
Returns the display name of this object.
Link copied to clipboard
abstract fun getPreferredVersion(): String
The preferred version of a module (which may be an exact version or a version range).
Link copied to clipboard
Returns the list of versions that this module rejects (which may be exact versions, or ranges, anything that fits into a version string).
Link copied to clipboard
abstract fun getRequiredVersion(): String
The required version of a module (which may be an exact version or a version range).
Link copied to clipboard
abstract fun getStrictVersion(): String
The strictly required version of a module (which may be an exact version or a version range).
Link copied to clipboard
abstract fun prefer(version: String)
Sets the preferred version of this module.
Link copied to clipboard
abstract fun reject(versions: Array<String>)
Declares a list of rejected versions.
Link copied to clipboard
abstract fun rejectAll()
Rejects all versions of this component.
Link copied to clipboard
abstract fun require(version: String)
Sets the required version of this module.
Link copied to clipboard
abstract fun setBranch(@Nullable branch: @Nullable String)
Specifies the branch to select versions from.
Link copied to clipboard
abstract fun strictly(version: String)
Sets the version as strict.