Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Doctoror opened this issue Mar 30, 2015 · 4 comments

Comments

@Doctoror
Copy link

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
Copy link

benhylau commented Apr 1, 2015

Changing to this fixed it for me.

signing.secretKeyRingFile=/Users/username/.gnupg/secring.gpg

@Doctoror
Copy link
Author

Doctoror commented Apr 1, 2015

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
Copy link

benhylau commented Apr 1, 2015

Right, but did that work for you?

@Doctoror
Copy link
Author

Doctoror commented Apr 2, 2015

Yeap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants