gradle
8.6

# MutableVersionConstraint

interface MutableVersionConstraint : VersionConstraint(source)

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

## Functions

getBranch
Link copied to clipboard
@Nullable
abstract fun getBranch(): String
Returns the branch to select versions from.
getDisplayName
Link copied to clipboard
abstract fun getDisplayName(): String
getPreferredVersion
Link copied to clipboard
abstract fun getPreferredVersion(): String
getRejectedVersions
Link copied to clipboard
abstract fun getRejectedVersions(): List<String>
getRequiredVersion
Link copied to clipboard
abstract fun getRequiredVersion(): String
getStrictVersion
Link copied to clipboard
abstract fun getStrictVersion(): String
prefer
Link copied to clipboard
abstract fun prefer(version: String)
Sets the preferred version of this module.
reject
Link copied to clipboard
abstract fun reject(versions: Array<String>)
Declares a list of rejected versions.
rejectAll
Link copied to clipboard
abstract fun rejectAll()
Rejects all versions of this component.
require
Link copied to clipboard
abstract fun require(version: String)
Sets the required version of this module.
setBranch
Link copied to clipboard
abstract fun setBranch(@Nullable branch: String)
Specifies the branch to select versions from.
strictly
Link copied to clipboard
abstract fun strictly(version: String)
Sets the version as strict.