I have a KMP gradle project with (multi-module, composite build) and more times than not I get a few
gpg: signing failed: Cannot allocate memory
errors when I try to publish the modules. I use
com.vanniktech.maven.publish
for publishing with the standard
signing
plugin. If I run publish again a few times it eventually signs everything but it is really distracting to run it 3-4 times to get the modules published. Any pointers how to solve this? The JVM memory passed to the gradle project doesn't matter (makes sense, gpg runs outside the JVM I think). I'm on Mac OS.
signing {
useGpgCmd()
sign(publishing.publications)
}
mavenPublishing {
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
signAllPublications()
//...
}