chrisbanes / gradle-mvn-push

Helper to upload Gradle Android Artifacts to Maven repositories
Apache License 2.0
1.05k stars 283 forks source link

signArchives key file path is appended to user.dir regardless of home symbol #47

Open Doctoror opened 9 years ago

Doctoror commented 9 years ago

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
benhylau commented 9 years ago

Changing to this fixed it for me.

signing.secretKeyRingFile=/Users/username/.gnupg/secring.gpg
Doctoror commented 9 years ago

I had an idea to try that as well, but it is still a problem since Chris Banes gives a sample with a path starting with home symbol. So either a sample or the script has an issue.

benhylau commented 9 years ago

Right, but did that work for you?

Doctoror commented 9 years ago

Yeap.