1:添加插件

  1. buildscript {
  2. ...
  3. dependencies {
  4. classpath "com.android.tools.build:gradle:4.0.0"
  5. classpath "com.github.dcendents:android-maven-gradle-plugin:2.1"
  6. }
  7. }

2:添加对插件至lib

  1. apply plugin: 'com.android.library'
  2. apply plugin: 'com.github.dcendents.android-maven'
  3. group='com.github.zsgfrtttt'

3:上传到github,发布release版
O Unwatch.png
#4:登录https://jitpack.io/

*PS:发布的项目需要包含目录gradle/