I have a Java project which I compile most of the time for release candidates (development releases), and sometimes for production release.
Now, based of the flavour I set certain properties and certain configurations.
Currently I am doing that based on a project property (-P), but it is not very elegant.
I tried creating tasks that based on the task tree different configurations will take effect, the problem is that the task graph is only ready after the configuration phase, which means by that time I am unable (or rather need to put in a lot of effort) to change the already set configurations.
Is there any elegant way in which I can achieve that?