I have a spring boot app that saves files to google bucket.
I have been able to add GOOGLE_APPLICATION_CREDENTIALS environment variable on the production
server.
On my development machine I have set GOOGLE_APPLICATION_CREDENTIALS=KEY_PATH
. I also have an option to store the credentials on a json file File PATH_TO_JSON_KEY = new File("./src/main/resources/google-credentials.json");
. My question is, how do I get my application to know where the credentials are?