Skip to content

Commit

Permalink
update gradle.
Browse files Browse the repository at this point in the history
  • Loading branch information
qingmei2 committed Oct 18, 2018
1 parent ae37d66 commit 95ca83a
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 43 deletions.
10 changes: 5 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// classpath 'com.novoda:bintray-release:0.8.1'
classpath 'com.novoda:bintray-release:0.8.1'
}
}

Expand All @@ -32,7 +32,7 @@ task clean(type: Delete) {
delete rootProject.buildDir
}

//tasks.getByPath(":rximagepicker:releaseAndroidJavadocs").enabled = false
//tasks.getByPath(":rximagepicker_support:releaseAndroidJavadocs").enabled = false
//tasks.getByPath(":rximagepicker_support_wechat:releaseAndroidJavadocs").enabled = false
//tasks.getByPath(":rximagepicker_support_zhihu:releaseAndroidJavadocs").enabled = false
tasks.getByPath(":rximagepicker:releaseAndroidJavadocs").enabled = false
tasks.getByPath(":rximagepicker_support:releaseAndroidJavadocs").enabled = false
tasks.getByPath(":rximagepicker_support_wechat:releaseAndroidJavadocs").enabled = false
tasks.getByPath(":rximagepicker_support_zhihu:releaseAndroidJavadocs").enabled = false
2 changes: 1 addition & 1 deletion config.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ project.ext {
minSdkVersion : 16,
targetSdkVersion : 28,
versionCode : 21,
versionName : "2.3.0"
versionName : "2.3.0-alpha"
]

dependencies = [
Expand Down
18 changes: 9 additions & 9 deletions rximagepicker/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
//apply plugin: 'com.novoda.bintray-release'
apply plugin: 'com.novoda.bintray-release'

android {
compileSdkVersion rootProject.ext.android["compileSdkVersion"]
Expand Down Expand Up @@ -41,11 +41,11 @@ repositories {
mavenCentral()
}

//publish {
// userOrg = 'mq2553299'
// groupId = 'com.github.qingmei2'
// artifactId = 'rximagepicker'
// publishVersion = rootProject.ext.android["versionName"]
// desc = 'The library which choosing pictures from camera or gallery in Android.'
// website = 'https://github.com/qingmei2/RxImagePicker'
//}
publish {
userOrg = 'mq2553299'
groupId = 'com.github.qingmei2'
artifactId = 'rximagepicker'
publishVersion = rootProject.ext.android["versionName"]
desc = 'The library which choosing pictures from camera or gallery in Android.'
website = 'https://github.com/qingmei2/RxImagePicker'
}
18 changes: 9 additions & 9 deletions rximagepicker_support/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
//apply plugin: 'com.novoda.bintray-release'
apply plugin: 'com.novoda.bintray-release'

android {
compileSdkVersion rootProject.ext.android["compileSdkVersion"]
Expand Down Expand Up @@ -43,11 +43,11 @@ repositories {
mavenCentral()
}

//publish {
// userOrg = 'mq2553299'
// groupId = 'com.github.qingmei2'
// artifactId = 'rximagepicker_support'
// publishVersion = rootProject.ext.android["versionName"]
// desc = 'The library which choosing pictures from camera or gallery in Android.'
// website = 'https://github.com/qingmei2/RxImagePicker'
//}
publish {
userOrg = 'mq2553299'
groupId = 'com.github.qingmei2'
artifactId = 'rximagepicker_support'
publishVersion = rootProject.ext.android["versionName"]
desc = 'The library which choosing pictures from camera or gallery in Android.'
website = 'https://github.com/qingmei2/RxImagePicker'
}
18 changes: 9 additions & 9 deletions rximagepicker_support_wechat/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
//apply plugin: 'com.novoda.bintray-release'
apply plugin: 'com.novoda.bintray-release'

android {
compileSdkVersion rootProject.ext.android["compileSdkVersion"]
Expand Down Expand Up @@ -51,14 +51,14 @@ dependencies {
repositories {
mavenCentral()
}
//publish {
// userOrg = 'mq2553299'
// groupId = 'com.github.qingmei2'
// artifactId = 'rximagepicker_support_wechat'
// publishVersion = rootProject.ext.android["versionName"]
// desc = 'The library which choosing pictures from camera or gallery in Android.'
// website = 'https://github.com/qingmei2/RxImagePicker'
//}
publish {
userOrg = 'mq2553299'
groupId = 'com.github.qingmei2'
artifactId = 'rximagepicker_support_wechat'
publishVersion = rootProject.ext.android["versionName"]
desc = 'The library which choosing pictures from camera or gallery in Android.'
website = 'https://github.com/qingmei2/RxImagePicker'
}
kapt {
generateStubs = true
}
18 changes: 9 additions & 9 deletions rximagepicker_support_zhihu/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
//apply plugin: 'com.novoda.bintray-release'
apply plugin: 'com.novoda.bintray-release'

android {
compileSdkVersion rootProject.ext.android["compileSdkVersion"]
Expand Down Expand Up @@ -52,14 +52,14 @@ dependencies {
repositories {
mavenCentral()
}
//publish {
// userOrg = 'mq2553299'
// groupId = 'com.github.qingmei2'
// artifactId = 'rximagepicker_support_zhihu'
// publishVersion = rootProject.ext.android["versionName"]
// desc = 'The library which choosing pictures from camera or gallery in Android.'
// website = 'https://github.com/qingmei2/RxImagePicker'
//}
publish {
userOrg = 'mq2553299'
groupId = 'com.github.qingmei2'
artifactId = 'rximagepicker_support_zhihu'
publishVersion = rootProject.ext.android["versionName"]
desc = 'The library which choosing pictures from camera or gallery in Android.'
website = 'https://github.com/qingmei2/RxImagePicker'
}
kapt {
generateStubs = true
}
4 changes: 3 additions & 1 deletion sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ def testJcenter = false
dependencies {
implementation rootProject.ext.dependencies["kotlin-android"]
implementation rootProject.ext.dependencies["appcompat"]
implementation rootProject.ext.dependencies["design"]
implementation(rootProject.ext.dependencies["design"]) {
exclude group: 'androidx.recyclerview'
}
implementation rootProject.ext.dependencies["glide"]
kapt rootProject.ext.dependencies["glide-compiler"]

Expand Down

0 comments on commit 95ca83a

Please sign in to comment.