Hello I'm trying to publish my multi-platform libr...
# multiplatform
v
Hello I'm trying to publish my multi-platform library but while signing it I get the error
Copy code
Execution failed for task ':signKotlinMultiplatformPublication'.
> Unable to retrieve secret key from key ring file 'C:\Users\Administrator\IdeaProjects\lucide-kotlin\Users\Administrator\.gnupg\signing-key.gpg' as it does not exist
My ~/.gradle/gradle.properties
signing.secretKeyRingFile=/Users/Administrator/.gnupg/signing-key.gpg
idk why it's appending KeyRing path instead of setting it
a
what happens if you prepend the property value with
C:/
?
Copy code
signing.secretKeyRingFile=C:/Users/Administrator/.gnupg/signing-key.gpg
v
'C:\Users\Administrator\IdeaProjects\lucide-kotlin\C:UsersAdministrator.gnupgsigning-key.gpg
a
and if you use Windows separators?
Copy code
signing.secretKeyRingFile=C:\\Users\\Administrator\\.gnupg\\signing-key.gpg
v
Ok that worked now the path doesn't append but I get this error
Copy code
Unable to read secret key from file: C:\Users\Administrator\.gnupg\signing-key.gpg (it may not be a PGP secret key ring)
Cause: premature end of stream in PartialInputStream
maybe I didn't export my key correctly although the same key works when I try to sign it using other way
useGpgCmd()
Oh sorry for troubling you. It looks like singing-key was a public key, i exported the private key again and updated the fields and it started to work. Thank you
a
it’s no trouble! Glad to hear it’s working