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.

excludeVersionByRegex

abstract fun excludeVersionByRegex(groupRegex: String, moduleNameRegex: String, versionRegex: String)(source)

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

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

Since

5.1

Parameters

groupRegex

the group name

moduleNameRegex

the module name

versionRegex

the module version