I have a build.gradle and a local.properties file.  I want to declare a value in local.properties, which isn't checked in to version control, to use in build.gradle.
I have the buildConfigField working with:
buildTypes {
    debug {
        buildConfigField "String", "TEST", "test"
    }
}
Unfortunately though, this causes an error:
buildTypes {
    debug {
        buildConfigField "String", "TEST", local.properties.get("test")
    }
}