Adding gradle.properties value in .class file at the time of build


(Biswas) #1

Hi,
I am trying to add a property value to a java class, which is present in gradle.properties.
In java, the value should be replaced at build time, and in .jar(.class) file the value will come but not in .java file. So that we can change the value directly in gradle.properties and no need to change the code.
Is it possible to achieve?
Thanks in advance!!