-
Create a service account JSON file for Firebase by clicking the "Generate new private key" button in the "Service accounts" tab in the "Project settings".
-
Add it as
src/main/resources/firebase_service_account.json
.
See https://firebase.google.com/docs/admin/setup#initialize_the_sdk_in_non-google_environments for details.