I'm trying to publish my project to maven central,...
# multiplatform
b
I'm trying to publish my project to maven central, and I'm still stuck with the gpg issue. I can't sign my artifacts for some reason. Is there a simple way to do the signing?
Copy code
* What went wrong:
Execution failed for task ':initializeSonatypeStagingRepository'.
> Failed to create staging repository, server responded with status code 400
r
There's publishing plugins like https://github.com/vanniktech/gradle-maven-publish-plugin that will handle it for you. Otherwise make sure you're following https://docs.gradle.org/current/userguide/signing_plugin.html, and signing them correctly (i.e. not trying to sign w/ your public key like I did).
1
b
Thank you, However, I'm still having some problems publishing a multiplatform project. Had several errors.
l
You can look at Splitties, it's published from GitHub Actions, built, signed and uploaded on all 3 desktop OSes, and published to the same staging repo before checking and publication.
b
@louiscad where did you set the values for the ff:
Copy code
val signingKey: String? by project
val signingPassword: String? by project
signingKey is the gpg secretKeyRing right? I'm having these errors
Copy code
Execution failed for task ':signKotlinMultiplatformPublication'.
> Cannot perform signing task ':signKotlinMultiplatformPublication' because it has no configured signatory
l
@Bradford Canonigo What does "ff" mean?
Regardless, you can look at the
env
content in the GitHub Actions/workflow files, that's where the secrets are supplied.