####如何把库发布到JCenter
1、首先去注册https://bintray.com
2、
| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 
 |  classpath 'com.novoda:bintray-release:0.3.4'
 如果遇到错误添加
 allprojects {
 repositories {
 jcenter()
 }
 tasks.withType(Javadoc) {
 options.addStringOption('Xdoclint:none', '-quiet')
 options.addStringOption('encoding', 'UTF-8')
 }
 }
 
 
 | 
3、库的build
| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 
 | apply plugin: 'com.novoda.bintray-release'//添加android {
 lintOptions {
 abortOnError false
 }
 }
 
 publish {
 userOrg = 'limxing'//bintray.com用户名
 groupId = 'me.leefeng'//jcenter上的路径
 artifactId = 'library'//项目名称
 publishVersion = '1.0.2'//版本号
 desc = '我的个人库,更改动画'//描述,不重要
 website = 'https://github.com/limxing/app'//网站,不重要;尽量模拟github上的地址,例如我这样的;当然你有地址最好了
 }
 
 
 |