For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

prefer

abstract fun prefer(version: String)(source)

Sets the preferred version of this module.

This is a very soft version declaration. It applies only if there is no stronger non dynamic opinion on a version for the module. This term does not support dynamic versions.

This can complement a strictly or require indication.

This clears any set rejected versions.

Since

4.4

Parameters

version

the preferred version of this module