Tóth István Zoltán
09/30/2024, 4:44 AMgpg: 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()
//...
}
tapchicoma
09/30/2024, 10:55 AMTóth István Zoltán
10/01/2024, 8:10 AMauto-expand-secmem 0x300000
to .gnupg/gpg-agent.conf
killall gpg-agent