api / org.gradle.api.artifacts / MutableVersionConstraint / prefer

prefer

abstract fun prefer(version: String): Unit

Sets the preferred version of this module. Any other rejection/strict constraint will be overriden.

Parameters

version - the preferred version of this module