Skip to content

Commit 5631e36

Browse files
committed
Merge pull request #76 from longbai/maven-pub
Maven publish script
2 parents f9f22d7 + 38a49c5 commit 5631e36

File tree

7 files changed

+33
-131
lines changed

7 files changed

+33
-131
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#Changelog
22

3+
## 7.0.1
4+
5+
### 增加
6+
* 增加maven 一键发布
7+
38
## 7.0.0 (2014-10-23)
49

510
### 增加

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@
77

88
## 安装
99

10+
### 直接安装
1011
将realease 目录中的jar 复制到项目中去,此版本sdk依赖 http://loopj.com/android-async-http/ 1.4.6及以上版本
1112

13+
### 通过maven
14+
* 如果在Adroid Studio中使用,添加dependencies `compile 'com.qiniu:qiniu-android-sdk:7.0.0'` 或在项目中添加maven依赖
15+
* 如果是eclipse, 也可以直接添加依赖来处理。
16+
1217
## 使用方法
1318

1419
```java

gradle.properties

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
# Project-wide Gradle settings.
1+
VERSION_NAME=
2+
VERSION_CODE=
23

3-
# IDE (e.g. Android Studio) users:
4-
# Settings specified in this file will override any Gradle settings
5-
# configured through the IDE.
4+
GROUP=com.qiniu
65

7-
# For more details on how to configure your build environment visit
8-
# http://www.gradle.org/docs/current/userguide/build_environment.html
6+
POM_DESCRIPTION=Qiniu Cloud Storage SDK for Android
7+
POM_URL=https://github.com/qiniu/android-sdk
8+
POM_SCM_URL=https://github.com/qiniu/android-sdk
9+
POM_SCM_CONNECTION=scm:[email protected]:qiniu/android-sdk.git
10+
POM_SCM_DEV_CONNECTION=scm:[email protected]:qiniu/android-sdk.git
11+
POM_LICENCE_NAME=MIT License
12+
POM_LICENCE_URL=http://opensource.org/licenses/MIT
13+
POM_LICENCE_DIST=repo
914

10-
# Specifies the JVM arguments used for the daemon process.
11-
# The setting is particularly useful for tweaking memory settings.
12-
# Default value: -Xmx10248m -XX:MaxPermSize=256m
13-
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14-
15-
# When configured, Gradle will run in incubating parallel mode.
16-
# This option should only be used with decoupled projects. More details, visit
17-
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18-
# org.gradle.parallel=true
15+
POM_DEVELOPER_ID=qiniu
16+
POM_DEVELOPER_NAME=Qiniu

library/build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,9 @@ task releaseJar(type: Copy, dependsOn: 'build') {
4242
into('../releases')
4343
include('classes.jar')
4444
rename('classes.jar', 'qiniu-android-sdk-' + version + '.jar')
45-
}
45+
}
46+
47+
setProperty('VERSION_NAME', version)
48+
setProperty('VERSION_CODE', code)
49+
50+
apply from: 'https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle'

library/library.iml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/java" isTestSource="true" />
5959
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/jni" isTestSource="true" />
6060
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" />
61+
<excludeFolder url="file://$MODULE_DIR$/build/docs" />
6162
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/assets" />
6263
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/bundles" />
6364
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" />
@@ -77,7 +78,9 @@
7778
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/res" />
7879
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" />
7980
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/symbols" />
81+
<excludeFolder url="file://$MODULE_DIR$/build/libs" />
8082
<excludeFolder url="file://$MODULE_DIR$/build/outputs" />
83+
<excludeFolder url="file://$MODULE_DIR$/build/poms" />
8184
<excludeFolder url="file://$MODULE_DIR$/build/tmp" />
8285
</content>
8386
<orderEntry type="jdk" jdkName="Android API 21 Platform" jdkType="Android SDK" />

library/src/main/java/com/qiniu/android/common/Config.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Created by bailong on 14/10/8.
55
*/
66
public final class Config {
7-
public static final String VERSION = "7.0.0";
7+
public static final String VERSION = "7.0.1";
88

99
public static final String UP_HOST = "upload.qiniu.com";
1010
public static final String UP_HOST_BACKUP = "up.qiniu.com";

maven_push.gradle

Lines changed: 0 additions & 114 deletions
This file was deleted.

0 commit comments

Comments
 (0)