Closed sasa-b closed 1 week ago
Where are you loading the GPG key from?
@natario1 I tried loading it from local.properties / gradle.properties
I also tried populating the ENV as well with System.setProperty("SIGNING_KEY", File("key.txt").readText())
and removing it from local.properties but I got the same error.
Here's how the key should look like in .properties
files. Note that newlines are simple \n
.
Beginning:
End:
If your key looks similar, maybe you are using the wrong password.
@natario1 thank you very much for the prompt responses, the issue was that I didn't start with the newline special character SIGNING_KEY=\n...
🤦♂️
Hey there, I've followed your blog post https://blog.deepmedia.io/post/how-to-publish-to-maven-central-in-2024 but no matter what I do I'm unable to load the GPG key.
I keep getting this error
Cause: secret key ring doesn't start with secret key tag: tag 0xffffffff
. With or without\n
line character, I've tried escaping the\\n
and putting the key between""
but it still doesn't help.