gradle
8.5

# require

abstract fun require(version: String)(source)

Sets the required version of this module.

Implies that the selected version cannot be lower than what `require` accepts but could be higher through conflict resolution, even if higher has an exclusive higher bound. This is what a direct dependency translates to. This term supports dynamic versions.

This will override a previous strictly declaration.

This clears any set rejected versions.

#### Parameters

version

the required version of this module