fun Project.getLocalOrGradleProperty(propertyName: String): String?

Returns the value of a property with name propertyName. The property value can be defined in or as a Gradle property. If the property value is defined in the file, the value takes precedence over the Gradle property value (if any). Returns null if the property is not defined in the file and not as Gradle property.