Is it possible to reference other properties in gradle.properties?

We have an ivy repository that is in a https location with a self signed certificate. I was able to get a keystore working by setting the following properties in gradle.properties:

systemProp.javax.net.ssl.trustStore="/home/user/project/gradle/keystore"
systemProp.javax.net.ssl.trustStorePassword=xyzABC

My question, is it possible to reference other properties in gradle.properties? So I could point to $rootDir instead of hardcoding the keystore location? Something like:

systemProp.javax.net.ssl.trustStore="${rootDir}/gradle/keystore"
systemProp.javax.net.ssl.trustStorePassword=xyzABC

I tried the above, but it gave me:

java.io.FileNotFoundException: "${rootDir}/gradle/keystore" (No such file or directory)

Is there a solution to this without hardcoding a path?

It isn’t possible to reference other properties in ‘gradle.properties’, but setting the system properties from a build script should work fine.

Thank you, I was able to do it that way.