This commit is contained in:
Amith Koujalgi 2023-12-19 15:58:03 +05:30
parent dc0a6a293d
commit 6e0713d8a6

View File

@ -1,3 +1,6 @@
Understanding publishing:
https://dzone.com/articles/how-to-publish-artifacts-to-maven-central
GPG Signing setup GPG Signing setup
## GPG Setup ## GPG Setup
@ -7,8 +10,16 @@ https://central.sonatype.org/publish/requirements/gpg/#listing-keys
### Steps ### Steps
- Create key: `gpg --gen-key` and then list keys to verify: `gpg --list-keys` - Create key: `gpg --gen-key` and then list keys to verify: `gpg --list-keys`
- Distributing Your Public - Distributing Your Public Key:
Key: `gpg --keyserver keyserver.ubuntu.com --send-keys CA925CD6C9E8D064FF05B4728190C4130ABA0F98`
```
gpg --keyserver pool.sks-keyservers.net --send-keys CA925CD6C9E8D064FF05B4728190C4130ABA0F98
gpg --keyserver pgp.key-server.io --send-keys CA925CD6C9E8D064FF05B4728190C4130ABA0F98
gpg --keyserver keyserver.ubuntu.com --send-keys CA925CD6C9E8D064FF05B4728190C4130ABA0F98
gpg --keyserver pgp.mit.edu --send-keys CA925CD6C9E8D064FF05B4728190C4130ABA0F98
gpg --keyserver keys.gnupg.net --send-keys CA925CD6C9E8D064FF05B4728190C4130ABA0F98
```
- Now other people can import your public key from the key server to their local - Now other people can import your public key from the key server to their local
machines: `gpg --keyserver keyserver.ubuntu.com --recv-keys CA925CD6C9E8D064FF05B4728190C4130ABA0F98` machines: `gpg --keyserver keyserver.ubuntu.com --recv-keys CA925CD6C9E8D064FF05B4728190C4130ABA0F98`