providerFor

fun providerFor(key: String): Provider<String>(source)

Returns a "safe" property Provider mechanism that handles multiple property sources in a hierarchical fashion.

This checks in the following order of priority

  • project-local local.properties

  • project-local gradle.properties

  • root-project local.properties

  • root-project/global gradle.properties