Im new in Gradle enviroment and I'm developing a Spring Application with property expansion in application.properties file, like:server.port = $ {app_server_port}
Everything is working OK, when I build with gradle build command, Gradle takes the file~ / .gradle / gradle.properties and expand variables into the builded application.properties file.
My question is:
- How can you prevent that property expansion?
- There is any command line argument in
gradle buildthat will make it to ignore~ / .gradle / gradle.propertiesand build the source with the original values? - There is something like
gradle build --skip-global-settings?
Thanks