安卓SDK发布到maven
【参考文档】
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
3、在~/.gradle/gradle.properties文件内写入
signing.keyId=
signing.password=
signing.secretKeyRingFile=
systemProp.http.proxyHost=
systemProp.http.proxyPort=
systemProp.https.proxyHost=127.0.0.1
systemProp.https.proxyPort=
mavenCentralUsername=
mavenCentralPassword=
原文地址:https://blog.csdn.net/Jessica_hhh/article/details/139859720
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!