Skip to content

Commit

Permalink
opti: 升级项目构建的配置
Browse files Browse the repository at this point in the history
  • Loading branch information
jingdan committed Oct 19, 2017
1 parent 8acd8f8 commit 0b8ad8f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 36 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
buildToolsVersion '25.0.0'

defaultConfig {
applicationId "com.alibaba.sdk.android.oss.app"
Expand Down
22 changes: 3 additions & 19 deletions build.gradle
Expand Up @@ -3,28 +3,12 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
}
}

ext {
configCompileSdkVersion = 23
configTargetSdkVersion = 23
configBuildToolsVersion = '23.0.2'

supportVersion = '23.0.1'
support = [annotations: "com.android.support:support-annotations:$supportVersion",
appCompat : "com.android.support:appcompat-v7:$supportVersion"]

assertJCore = 'org.assertj:assertj-core:1.7.1'
junit = 'junit:junit:4.12'

supportTest = [espressoCore: 'com.android.support.test.espresso:espresso-core:2.2.1',
rules : 'com.android.support.test:rules:0.4.1']
}

allprojects {
repositories {
jcenter()
Expand Down
3 changes: 1 addition & 2 deletions gradle/wrapper/gradle-wrapper.properties
Expand Up @@ -3,5 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip
#distributionUrl=file:///Users/wangzheng/develop/android/gradle/gradle-2.10-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
6 changes: 3 additions & 3 deletions oss-android-sdk/build.gradle
Expand Up @@ -7,7 +7,7 @@ version = "2.4.4" // 修改为发布的版本号

android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
buildToolsVersion '25.0.0'
useLibrary 'org.apache.http.legacy'

compileOptions {
Expand All @@ -16,8 +16,8 @@ android {
}

defaultConfig {
minSdkVersion 10
targetSdkVersion 19
minSdkVersion 14
targetSdkVersion 25
versionCode 25
versionName "2.4.4"
}
Expand Down
21 changes: 10 additions & 11 deletions oss-android-sdk/version update
Expand Up @@ -14,25 +14,24 @@ https://juejin.im/entry/5844c30561ff4b006c34b133

在上传前最好将gradle指向本地的文件

jcente 提供商 https://bintray.com/ 账号
user:1019272778@qq.com
psw:aliyun123
jcenter 提供商 https://bintray.com/ 账号
user:*************
psw:*************

Maven Central 提供商 sonatype.org 账号
<username>alidpa</username>
<password>HelloDpa</password>
<username>*************</username>
<password>*************</password>


build.gradle 中的配置已经修改。并且可以同步到maven central
执行步骤
1 在工程目录下执行 ./gradlew bintrayUpload
如果有错误,参加错误原因修改

在本地local.properties文件中添加下边3个
bintray.user=*************
bintray.apikey=*************
bintray.gpg.password=*************


bintray.user=1019272778
bintray.apikey=d0cb859cc33c1fa63a4b51b26e8a0c244a36ee0b
bintray.gpg.password=aliyun!@#oss


gpg 5948D72A7741624E
gpg *************

0 comments on commit 0b8ad8f

Please sign in to comment.