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.

from

abstract fun from(dependencyNotation: Any)(source)

Configures the model by reading it from a version catalog. A version catalog is a component published using the `version-catalog` plugin or a local TOML file.

This function can be called only once, further calls will result in an error. The passed notation should conform these constraints:

  • If a file notation is passed, it should be a single file.
  • If it's a resolvable dependency, it should resolve to a single file.

If the notation doesn't conform these constraints, an exception will be thrown at configuration time.

Since

7.0

Parameters

dependencyNotation