Gradle 2.14 pluginRepositories with non-hardcoded credentials?

With the Gradle v2.14 introduction of pluginRepositories to the settings.gradle file, I would like to point to my private maven repository like:
pluginRepositories {
maven {
credentials {
username "${repoUsername}"
password “${repoPassword}”
}
url “${repoUrl}”
}
gradlePluginPortal()
}

If I do this via the buildscript style in the build.gradle, 2.14 will properly resolve the properties from my gradle.properties file. If I try it via the settings.gradle file, 2.14 doesn’t seem to resolve the properties. Am I missing something, or is this feature not yet supported?

This will be fixed in Gradle 3.0