We aim to automate creation of war distributions, especially for production, and are looking for guidance on how to integrate our process with Cuba, which is already very integrated by itself.
Mostly, we fear that if we customize build.gradle and tomcat deployment, everything can later be made disappeared by Studio (who can delete both of those in certain cases).
Our process would be designed this way:
- Artifact version is taken from Git branch and set into build.gradle : is there any facility in Cuba to do that ?
- Datasource must be changed according to environment (homologation, production) in META-INF/context.xml into the war produced by Studio : how can we hook into Studio war generation to do that ?
- put a logback.xml specific for production : same here, how can we hook into war generation to add the file to war
Any guidance would be much appreciated.