getLocalOrGradleProperty

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

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