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.

hasProperty

abstract fun hasProperty(name: String): Boolean(source)

Returns true if the object has a property named name.

Note that this method will only return true for realised Groovy properties and does not take into account implementation of Groovy's getProperty or propertyMissing.

Since

8.1