I've got a global config pointing to
signing.secretKeyRingFile=~/.gnupg/secring.gpg
gradle uploadArchives exits with failure:
FAILURE: Build failed with an exception.
* What went wrong:
Could not evaluate onlyIf predicate for task ':library:signArchives'.
> Unable to retrieve secret key from key ring file '/home/username/androidstudioprojectspath/myproject/library/~/.gnupg/secring.gpg' as it does not exist