Skip to content

Commit

Permalink
Merge pull request #2 from mutualmobile/development
Browse files Browse the repository at this point in the history
Updated gradle files for bintray upload
  • Loading branch information
mustafa01ali committed Jan 28, 2016
2 parents c37288e + e0d5401 commit f33fe37
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 2 deletions.
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.0.0-alpha5'
classpath 'com.android.tools.build:gradle:2.0.0-alpha7'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
75 changes: 74 additions & 1 deletion cardstack/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'

def siteUrl = 'https://github.com/mutualmobile/CardStackUI'
def gitUrl = 'https://github.com/mutualmobile/CardStackUI.git'
group = "com.mutualmobile.android"
version = "0.1"

android {
compileSdkVersion 23
Expand All @@ -8,7 +15,7 @@ android {
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0"
versionName version
}
buildTypes {
release {
Expand All @@ -18,7 +25,73 @@ android {
}
}

install {
repositories.mavenInstaller {
// This generates POM.xml with proper parameters
pom {
project {
packaging 'aar'
name 'card-stack-ui'
url siteUrl

// Set your license
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id 'tushar-acharya'
name 'Tushar Acharya'
email '[email protected]'
}
}
scm {
connection gitUrl
developerConnection gitUrl
url siteUrl

}
}
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.1.1'
}


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

artifacts {
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 = "Android"
name = "card-stack-ui"
userOrg = "mutualmobile"
websiteUrl = siteUrl
vcsUrl = gitUrl
licenses = ["Apache-2.0"]
publish = true
labels = ['aar', 'android', 'ui']
publicDownloadNumbers = true
}
}
apply plugin: 'maven'

0 comments on commit f33fe37

Please sign in to comment.