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.

strictly

abstract fun strictly(version: String)(source)

Sets the version as strict.

Any version not matched by this version notation will be excluded. This is the strongest version declaration. It will cause dependency resolution to fail if no version acceptable by this clause can be selected. This term supports dynamic versions.

This will override a previous require declaration.

This clears any set rejected versions.

Since

4.4

Parameters

version

the strict version to be used for this module