I am encountering following issue with gradle’s Si...
# gradle
s
I am encountering following issue with gradle’s Signing Task: ` Exception is:`*
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':signReleasePublication'.
Caused by: java.io.IOException: secret key ring doesn't start with secret key tag: tag 0x17
Any help would be appreciated
I removed and installed LTS version , and not getting java.io.IOException: secret key ring doesn’t start with secret key tag: tag 0x2f
b
Wrong File permissions?
s
What should be the desired permissions to a key?
b
No idea. Google around. I've only encountered similar issues with my ssh keys (unrelated to gradle)
You can try setting same perms as on ssh private key. Just a guess.
s
I googled around , got hint that this might be gpg tool related , so I uninstalled and installed LTS version and still same…. Read Permissions are given , I suppose that should be enough.
b
It can break if the file has too much permissions. Ssh certainly does
s
I will try read only , if it still doesnt work , I will try creating a key in Linux (Lets do old hit&Trial 🙃)
b
Wish I could help more.
You might try your luck asking in #library-development
s
No Worries…🙂, I will ask in that channel after linux doesnt work
c
looks like you are using a wrong key (or wrong key format)
s
I am using RSA, as shown in docs, I am trying in windows now will see if it works....
In Windows same error with different hex :
Caused by: java.io.IOException: secret key ring doesn't start with secret key tag: tag 0xffffffff
got it to work , I declared all props to gradle.properties and let plugin handle all ....
v
How should it be a file permission problem if he uses in-memory key? The first argument to that function must directly be the ascii-armored key, not a file containing it.
👍 1
b
Ah, wasn't aware of that.
Probably should've zoomed in first 😀