-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publish to Maven Central #210
Conversation
12142fb
to
4f19b36
Compare
Hi @jycr please check and correct buil / test errors above, before all. |
4f19b36
to
8822f98
Compare
8822f98
to
8405c0d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @jycr,
you said in description :
Changes required on GitHub account:
Add a secret for GPG private key: MAVEN_GPG_PRIVATE_KEY
Add a secret for GPG Key passphrase: MAVEN_GPG_PASSPHRASE
Add secrets for Central authentication : OSSRH_USERNAME and OSSRH_TOKEN (corresponding to the account declared on https://issues.sonatype.org/)
Ok for the creation of variables OSSRH_USERNAME
and OSSRH_TOKEN
. I understand we need them for contacting Sonatype.
But where do you want me to create these variables and with what values ? (in settings of ecoCode
repository) ?
Secondly, I don't understand the need of GPG variables ? why are they needed ? for encryption of sent data to Sonatype ?
where do you want me to create these variables and with what values ? (in settings of ecoCode
repository) ?
Yes, in
GPG variables is needed to create GPG signature of artifacts to deploy as requested in The Central Repository Documentation / Publishing my artifact / GPG Signed Components You can see those signatures (
Yes, in |
ed482aa
to
53bda57
Compare
53bda57
to
c5c7589
Compare
294f7b7
to
cf4784a
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information The version of Java (11.0.20) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. |
Add required information in
pom.xml
and GitHub workflow to automate publishing to Maven Central.Changes required on GitHub account:
MAVEN_GPG_PRIVATE_KEY
MAVEN_GPG_PASSPHRASE
OSSRH_USERNAME
andOSSRH_TOKEN
(corresponding to the account declared on https://issues.sonatype.org)