File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed
Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 1+ jdk :
2+ - openjdk8
3+
4+ build :
5+ - ./gradlew clean uploadArchives -Pgroup=com.github.mxdldev -Pversion=1.0.2.2 -xtest -xlint
Original file line number Diff line number Diff line change 11apply plugin : ' com.android.library'
2+ apply plugin : ' maven' // 使用 maven 插件
23
34android {
45 compileSdkVersion 28
56
6-
7-
87 defaultConfig {
98 minSdkVersion 14
109 targetSdkVersion 28
1110 versionCode 1
1211 versionName " 1.0"
1312
1413 testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
15-
1614 }
1715
1816 buildTypes {
@@ -21,7 +19,6 @@ android {
2119 proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
2220 }
2321 }
24-
2522}
2623
2724dependencies {
@@ -32,3 +29,15 @@ dependencies {
3229 implementation ' com.android.support:appcompat-v7:28.0.0'
3330 implementation ' com.android.support:recyclerview-v7:28.0.0'
3431}
32+
33+ // 配置发布任务
34+ uploadArchives {
35+ repositories {
36+ mavenDeployer {
37+ repository(url : uri(" ${ buildDir} /repo" )) // 本地发布路径,可以改为远程仓库地址
38+ pom. groupId = ' com.github.mxdldev' // 替换为你的 GitHub 用户名
39+ pom. artifactId = ' android-fly-refreshlayout' // 替换为你的库名称
40+ pom. version = ' 1.0.2.2' // 替换为你的版本号
41+ }
42+ }
43+ }
You can’t perform that action at this time.
0 commit comments