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.

Rule

interface Rule(source)

A Rule represents some action to perform when an unknown domain object is referenced. The rule can use the domain object name to add an implicit domain object.

Since

0.7

Functions

Link copied to clipboard
abstract fun apply(domainObjectName: String)
Applies this rule for the given unknown domain object.
Link copied to clipboard
abstract fun getDescription(): String
Returns the description of the rule.