I was using Gradle 7.1.1 to define defaultJvmOpts using environment variables ($APP_HOME) but while upgrading to Gradle 7.5.1, this is no longer expanded.
I am doing something like this :
defaultJvmOpts = '-Dlog4j.configurationFile=CUSTOM_APP_HOME/config/log4j2.xml'
and replacing CUSTOM_APP_HOME with $APP_HOME in
doLast , it was working fine with 7.1.1 , but with the upgrade it fails to do so.
Is there any recommendation to use that environment variable inside DEFAULT_JVM_OPTS ?
Thanks in advance