Does Gradle support properties interpolation?

gradle

Solution

`gradle.properties` is a plain Java properties files, hence String interpolation isn't supported. I recommend to keep all user-defined properties in `build.gradle` or a separate build script, which provide a much richer configuration language. For example:

gradle/properties.gradle:

ext {
    foo = "foo"
    foobar = "${foo}bar".toUpperCase()
}

build.gradle:

apply from: "gradle/properties.gradle"

println foobar

Problem

I can't find the syntax of property interpolation in gradle.properties: ``` prop1 = value prop2 =${prop1}/lib ``` Is it supported at all ? Thanks

Original source

Related problems