Update
This commit is contained in:
@@ -55,13 +55,13 @@ jCenter | jCenter貌似稍微简单一点,但也不是省油的灯。
|
||||
|
||||
在AndroidStudio中新建一个Project用于发布项目,新建完成之后结果是这样子:
|
||||
|
||||

|
||||

|
||||
|
||||
### 第 2 步: 在这个Project中添加一个Library
|
||||
|
||||
添加的这个Library就是我要发布的仓库,Library的名字无所谓,可以随便起(*我这里就叫library*)。添加完成之后是这样子:
|
||||
|
||||

|
||||

|
||||
|
||||
**注意: 1是新添加的Library 2是Library的build.gradle 3是Library的plugin**
|
||||
|
||||
@@ -75,6 +75,8 @@ apply plugin: 'com.android.library'
|
||||
|
||||
你需要对你的项目简单的配置一下:
|
||||
|
||||

|
||||
|
||||
**在你项目的根节点的 build.gradle(图示1) 中添加如下代码:**
|
||||
|
||||
``` gradle
|
||||
@@ -102,8 +104,21 @@ buildscript {
|
||||
|
||||
### 第 5 步: Release你的仓库或者给你的仓库打一个TAG
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
### 第 6 步: 将你的仓库地址提交到JitPack
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
|
||||
## About Me
|
||||
|
||||
### 作者微博: <a href="http://weibo.com/GcsSloop" target="_blank">@GcsSloop</a>
|
||||
|
||||
Reference in New Issue
Block a user