Cannot sign with in-memory key '[...]:signMavenPublication' because it has no configured signatory
See original GitHub issueAs explained in the README: https://github.com/vanniktech/gradle-maven-publish-plugin#signing I moved to in-memory GPG keys, using the following Gradle properties:
signingInMemoryKey=...
signingInMemoryKeyId=...
signingInMemoryPassword=...
I used gpg --export-secret-keys --armor $KEY_ID
and assigned the data to signingInMemoryKey
.
I also tried with the base64 version.
It really seems the key is well decrypted, because when I did it wrong I had the error Could not read PGP secret key
, and I do not have it here.
I did not change my gradle code, but now it fails with the message: Cannot perform signing task '[...]:signMavenPublication' because it has no configured signatory
You can see the gradle code here: https://github.com/aldebaran/pddl-planning-android/blob/a97d0656b7fe65cc0668b37c9e0da89e044932f0/pddl-planning/build.gradle
And the full error report with the stacktrace here: https://pastebin.com/3aiRjsZz
I am probably doing something wrong, but I cannot find any clue about it in the README.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (1 by maintainers)
Top GitHub Comments
I encountered this failure when I had one or more of my
singingInMemory*
properties configured incorrectly.At first, my
singingInMemoryKey
wasn’t stripped of the header, footer and newlines (as described in https://github.com/vanniktech/gradle-maven-publish-plugin/pull/201#discussion_r584270633).Then, I had specified the wrong
signingInMemoryKeyId
. I ultimately ended up just removing this property, as it is optional.I also had specified the password under
signingInMemoryPassword
before realizing that I was missing theKey
portion of the property name (i.e. it is supposed to besigningInMemoryKeyPassword
—MavenPublishBaseExtension.kt#L121
).As @twyatt mentioned the readme had the wrong property name. Sorry for the confusion