api / org.gradle.api / Project / hasProperty

hasProperty

abstract fun hasProperty(propertyName: String): Boolean

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

Parameters

propertyName - The name of the property to locate.

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