From 68d8a995c97f748c5ee5fdee10a5764a414a37ea Mon Sep 17 00:00:00 2001 From: Jonas Kalderstam Date: Tue, 28 Apr 2015 12:48:27 +0200 Subject: [PATCH] Try bintray-release Signed-off-by: Jonas Kalderstam --- build.gradle | 2 ++ gradle.properties | 1 + library/build.gradle | 38 +++++++++++++++----------------------- 3 files changed, 18 insertions(+), 23 deletions(-) diff --git a/build.gradle b/build.gradle index b8616a5..640191b 100644 --- a/build.gradle +++ b/build.gradle @@ -6,6 +6,8 @@ buildscript { } dependencies { classpath 'com.android.tools.build:gradle:1.1.0' + classpath 'com.novoda:bintray-release:0.2.10' + //classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.5.1" //classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.1' //classpath 'com.github.dcendents:android-maven-plugin:1.2' diff --git a/gradle.properties b/gradle.properties index 7b0d6bf..159b57c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,6 +5,7 @@ VERSION_CODE=11 GROUP=com.nononsenseapps POM_NAME=NoNonsense-FilePicker +POM_ARTIFACT_ID=filepicker POM_DESCRIPTION=An extendable Android file/directory-picker you can include in your app POM_URL=https://github.com/spacecowboy/NoNonsense-FilePicker POM_SCM_URL=https://github.com/spacecowboy/NoNonsense-FilePicker diff --git a/library/build.gradle b/library/build.gradle index ab39bea..d395adb 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -1,4 +1,7 @@ apply plugin: 'com.android.library' +// must be applied after your artifact generating plugin (eg. java / +// com.android.library) +apply plugin: 'bintray-release' android { compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION) @@ -26,33 +29,22 @@ dependencies { compile 'com.android.support:recyclerview-v7:22.1.1' } -/* -bintray { - user = bintrayUser - key = bintrayKey - dryRun=true - configurations = ['archives'] - pkg { - repo = "maven" - name = POM_NAME - desc = POM_DESCRIPTION - websiteUrl = POM_URL - vcsUrl = POM_SCM_URL - issueTrackerUrl = POM_URL_ISSUES - labels = ['android', 'library', 'filepicker'] - licenses = ["LGPL-3.0"] - publish = true +publish { + groupId = GROUP + artifactId = POM_ARTIFACT_ID + publishVersion = VERSION_NAME + description = POM_DESCRIPTION + website = POM_URL + licences = ['LGPL-3.0'] + uploadName = POM_NAME + bintrayUser = BINTRAY_USER + bintrayKey = BINTRAY_KEY - version { - name = VERSION_NAME - vcsTag = 'v' + VERSION_NAME - } - } + //dryRun = true } -*/ // apply from: 'https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle' // apply from: 'https://raw.githubusercontent.com/blundell/release-android-library/master/android-release-aar.gradle' -apply from: '../android-release-aar.gradle' +//apply from: '../android-release-aar.gradle'