一.准备工作 1.登录https://bintray.com/注册一个帐号,并获取Api Key 2.创建一个Maven仓库 3.创建一个package 二.发布jar到jcenter 1.在project下build.gradle中添加如下: dependencies{}中加入