VersionConstraint
@Incubating public interface MutableVersionConstraint extends VersionConstraint
Modifier and Type | Method | Description |
---|---|---|
void |
prefer(String version) |
Sets the preferred version of this module.
|
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
void prefer(String version)
version
- the preferred version of this modulevoid strictly(String version)
version
- the strict version to be used for this module