上传依赖到jitpack
2018-12-10 本文已影响0人
无心下棋
使用插件都是一个操作:
1.在Project的build.gradle添加引用:
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
2.在需要作为依赖的模块下添加:
apply plugin: 'com.github.dcendents.android-maven'
还可以做其他设置,看这里

3.上传项目到github:

4.在github上打tag(Release或tag选哪个都行):

5.将依赖添加到 JitPack
将项目地址复制到搜索框内,Look up,之后get it,等待编译完成.

6.如何使用
