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(propertyName: String): Boolean(source)

Determines if this task has the given property. See here for details of the properties which are available for a task.

Return

True if this project has the given property, false otherwise.

Since

0.7

Parameters

propertyName

The name of the property to locate.