pluginRepositories block does not recognize properties from gradle.properties

Gradle Version: 2.14

Operating System: Windows 8.1

Is this a regression? If yes, which version of Gradle do you know it last worked for?

Not a regression

Description

With this gradle.properties file:

someUrl=http://some-server.net

…this settings.gradle file will produce an unknown property error for someUrl, originating on line 3:

pluginRepositories {
    maven {
        url "$someUrl/libs-local"
    }
    gradlePluginPortal()
}
println "Here's someUrl: $someUrl"

…but this one will not produce any errors, successfully resolving the property on line 7:

pluginRepositories {
    maven {
        url "http://some-server.net/libs-local"
    }
    gradlePluginPortal()
}
println "Here's someUrl: $someUrl"

Expected behavior

Neither settings.gradle should produce any errors. The pluginRepositories block should resolve gradle.properties properties just like any other content in settings.gradle.

This will be fixed in Gradle 3.0

For the record, if the property has dots in it, you can refer to it in the following way:

pluginRepositories {
    maven {
        url this."some.url"
    }
}