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.

excludeVersion

abstract fun excludeVersion(group: String, moduleName: String, version: String)(source)

Declares that a specific module version shouldn't be searched for in this repository.

The version notation for a regex will be matched against a single version and does not support range notations.

Since

5.1

Parameters

group

the group name

moduleName

the module name

version

the module version