【参考文档】
maven central:https://vanniktech.github.io/gradle-maven-publish-plugin/central/#in-memory-gpg-key
安装gpg:
https://central.sonatype.org/publish/requirements/gpg/#publish-or-drop-the-deployment
【流程】
1、进入Maven Central: Publishing
用Github注册账号 ,会有一个以自己github用户名注册的命名空间
2、安装gpg
brew update
brew upgrade gnupg
gpg --list-secret-keys
gpg --version
gpg --gen-key
gpg --list-keys
gpg --export-secret-keys -o 12345678.gpg
gpg --send-keys {key} #gpg --list-keys看到的pub的完整key