Problem Statement
Projects are checked in version control systems like git. You don’t want your credentials to be checked in git too. As such you need a way to easily inject your credentials in your build while keeping it away from prying eye.
Solution
The solution is to store it in ~/.gradle/gradle.properties. This file is not checked in and can be used across all your projects.