Gradle: Read repository secret from gpg encrypted .netrc file
First you need to have gpg keys created.
Then create a
~/.netrc as shown below and encrypt it with
gpg -r <your email> -e ~/.netrc, which will create a
.netrc.gpg. Remove the unencypted
Now create a
~/.gradle/init.gradle as shown below.