are people's releases getting through the new Mave...
# opensource
w
are people's releases getting through the new Maven Central? (central.sonatype.com)
👀 1
a
Unrelated to this, but do you publish to maven central through GitHub actions? The GPG signing is giving me trouble. I have a maven project
w
yep! it's all public, you can just copy my setup github.com/avianlabs/solana-kotlin
let me know if you need help!
oh I've just reread that you have a maven project as in the maven build tool
I use gradle
but the signing agent setup in the actions should still apply
the exact commands are done by the gradle plugin but the maven signing plugin should be able to
a
I'm using a very similar setup but it's not working. Strange.
w
the key is to setup the gpg agent and tear it down after
or at least was for me
w
hmmm it does look similar yeah
What's your issue?
Looks like the gpg key isn't being loaded or something in the subsequent steps
w
yeah it does look a failure of the maven plugin to find the right key
apologies but I'm a total noob on maven build stuff, the gpg stuff seems fine
a
No worries. Thanks for the help
w
maybe you need to set the key ID DFD88A9A648AE76B instead of the fingerprint?
does it work locally?
a
Yes I was able to publish locally
But I'll try the key id
w
blob thinking upside down
oh I think I see it
Copy code
echo 'default-key:0:"588E8F3A0BA04D07ED59D385DFD88A9A648AE76B' | gpgconf --change-options gpg; ./mvnw -B deploy -DskipTests=true
there's one unmatched
"
which if you remove it might work
a
Ok I'll give it a shot. I was looking at a stack overflow post
I am leaning towards ditching maven in favor of gradle
w
honestly the gradle setup was a breeze
a
I ended up converting from maven to gradle (kotlin) and used JReleaser and it worked!
🙌 1