引用原文
https://inthecheesefactory.com/blog/how-to-upload-library-to-jcenter-maven-central-as-dependency/
1.在 bintray.com?注冊一個賬號
https://bintray.com/signup/oss
2.編寫腳本?
https://github.com/msdx/gradle-publish 大神已經(jīng)給出腳本,我們只需要稍微修改成自己的信息就可以了
在library的gradle tasks里面找到publishing->bintrayUpload對aar進行上傳, 上傳成功后會得到gradle的構(gòu)建successfully的提示
3.bintray.com 上add to jcenter?
另外上傳jcenter 后需要等數(shù)個小時候才可以下載
所有上傳到j(luò)center 上的包 都可以在 https://jcenter.bintray.com/ 查詢到
如果您查詢到了,還是下載不了的話,可能還需要幾個點緩沖時間,再等會就好