上传Maven仓库比较繁琐,本文主讲jcenter
1.去jcenter官网注册个账号
https://bintray.com
然后在https://bintray.com/profile/edit下点击apikey,记录下自己的apikey和username,看下图。
image.png
下载uploadToBintray.sh,把它放在你的module目录下,例如CustomView/app/uploadToBintray.sh
然后打开你的终端或者android studio自带的终端,切换到你的app目录下 ,cd app
最后运行./uploadToBintray.sh,然后你按照提示填写就行了。