Is it possible to declare or change Java variables accessible via code with gradle?
I found Is it possible to declare a variable in Gradle usable in Java? and it tells me how to declare variables accessible via Java code for Android projects.
Is it possible to do the same with "normal" Java projects? I want to set a variable depending on which task is executed.
Thanks for your help!
Copytask, you'd configure the Java plugin'sprocessResourcestask.