The app I build has a dev and prod versions (like most apps).
I need a way to specify which version will upload via an environment variable (springboot "profile")
The only way I can pass environment variables to a war file is via app.yaml.
This means that the build (gradle) has to change one line in app.yaml as part of the build. The variable name in command line is --spring.profiles.active, so in app.yaml it will be :
env_variables:
- --spring.profiles.active: ${active_profile}