Skip to content

Commit

Permalink
release 2.3.0-alpha01.
Browse files Browse the repository at this point in the history
  • Loading branch information
qingmei2 committed Oct 23, 2018
1 parent 95ca83a commit 4a82a8d
Show file tree
Hide file tree
Showing 7 changed files with 326 additions and 44 deletions.
12 changes: 5 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ 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'

// plugin for jcenter
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
}
}

Expand All @@ -30,9 +33,4 @@ allprojects {

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
}
8 changes: 7 additions & 1 deletion config.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ project.ext {
minSdkVersion : 16,
targetSdkVersion : 28,
versionCode : 21,
versionName : "2.3.0-alpha"
versionName : "2.3.0-alpha01"
]

constants = [
siteUrl: "https://github.com/qingmei2/RxImagePicker",
gitUrl : "https://github.com/qingmei2/RxImagePicker.git",
group : "com.github.qingmei2"
]

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

apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'

android {
compileSdkVersion rootProject.ext.android["compileSdkVersion"]
Expand Down Expand Up @@ -41,11 +43,78 @@ 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'
version = rootProject.ext.android["versionName"]
group = rootProject.ext.constants["group"]
def siteUrl = rootProject.ext.constants["siteUrl"]
def gitUrl = rootProject.ext.constants["gitUrl"]
def libName = "rximagepicker"
def projectName = "RxImagePicker"

install {
repositories.mavenInstaller {
// This generates POM.xml with proper parameters
pom {
project {
packaging 'aar'
name projectName
url siteUrl
licenses {
license {
name 'MIT license'
url 'https://github.com/qingmei2/RxImagePicker/blob/2.x/LICENSE'
}
}
developers {
developer {
id 'qingmei2'
name 'qingmei2'
email '[email protected]'
}
}
scm {
connection gitUrl
developerConnection gitUrl
url siteUrl
}
}
}
}
}

task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}

task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
failOnError false
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}

artifacts {
archives javadocJar
archives sourcesJar
}

Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())

bintray {
user = properties.getProperty("bintray.user")
key = properties.getProperty("bintray.apikey")
configurations = ['archives']
pkg {
repo = "maven"
name = libName
websiteUrl = siteUrl
vcsUrl = gitUrl
licenses = ["MIT"]
publish = true
}
}
85 changes: 77 additions & 8 deletions rximagepicker_support/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'com.novoda.bintray-release'

apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'

android {
compileSdkVersion rootProject.ext.android["compileSdkVersion"]
Expand Down Expand Up @@ -43,11 +45,78 @@ 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'
version = rootProject.ext.android["versionName"]
group = rootProject.ext.constants["group"]
def siteUrl = rootProject.ext.constants["siteUrl"]
def gitUrl = rootProject.ext.constants["gitUrl"]
def libName = "rximagepicker_support"
def projectName = "RxImagePicker"

install {
repositories.mavenInstaller {
// This generates POM.xml with proper parameters
pom {
project {
packaging 'aar'
name projectName
url siteUrl
licenses {
license {
name 'MIT license'
url 'https://github.com/qingmei2/RxImagePicker/blob/2.x/LICENSE'
}
}
developers {
developer {
id 'qingmei2'
name 'qingmei2'
email '[email protected]'
}
}
scm {
connection gitUrl
developerConnection gitUrl
url siteUrl
}
}
}
}
}

task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}

task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
failOnError false
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}

artifacts {
archives javadocJar
archives sourcesJar
}

Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())

bintray {
user = properties.getProperty("bintray.user")
key = properties.getProperty("bintray.apikey")
configurations = ['archives']
pkg {
repo = "maven"
name = libName
websiteUrl = siteUrl
vcsUrl = gitUrl
licenses = ["MIT"]
publish = true
}
}
88 changes: 79 additions & 9 deletions rximagepicker_support_wechat/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ 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.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'

android {
compileSdkVersion rootProject.ext.android["compileSdkVersion"]
Expand Down Expand Up @@ -51,14 +53,82 @@ 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'
}
kapt {
generateStubs = true
}

version = rootProject.ext.android["versionName"]
group = rootProject.ext.constants["group"]
def siteUrl = rootProject.ext.constants["siteUrl"]
def gitUrl = rootProject.ext.constants["gitUrl"]
def libName = "rximagepicker_support_wechat"
def projectName = "RxImagePicker"

install {
repositories.mavenInstaller {
// This generates POM.xml with proper parameters
pom {
project {
packaging 'aar'
name projectName
url siteUrl
licenses {
license {
name 'MIT license'
url 'https://github.com/qingmei2/RxImagePicker/blob/2.x/LICENSE'
}
}
developers {
developer {
id 'qingmei2'
name 'qingmei2'
email '[email protected]'
}
}
scm {
connection gitUrl
developerConnection gitUrl
url siteUrl
}
}
}
}
}

task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}

task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
failOnError false
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}

artifacts {
archives javadocJar
archives sourcesJar
}

Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())

bintray {
user = properties.getProperty("bintray.user")
key = properties.getProperty("bintray.apikey")
configurations = ['archives']
pkg {
repo = "maven"
name = libName
websiteUrl = siteUrl
vcsUrl = gitUrl
licenses = ["MIT"]
publish = true
}
}
Loading

0 comments on commit 4a82a8d

Please sign in to comment.