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.

has

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

Returns whether or not the extension has a property registered via the given name.

assert project.ext.has("foo") == false
assert project.hasProperty("foo") == false

project.ext.foo = "bar"

assert project.ext.has("foo")
assert project.hasProperty("foo")

Return

true if a property has been registered with this name, otherwise false.

Since

1.0

Parameters

name

The name of the property to check for