From 92be1f8ef2b02f97e0075ee08245b0cd2026806e Mon Sep 17 00:00:00 2001 From: Hernan Zalazar Date: Thu, 7 Jul 2016 12:19:11 -0700 Subject: [PATCH] Bintray release scripts. Moved all scripts to single folder --- auth0/build.gradle | 3 ++- build.gradle | 3 +-- scripts/bintray.gradle | 32 ++++++++++++++++++++++++++++++++ {auth0 => scripts}/maven.gradle | 8 ++++---- 4 files changed, 39 insertions(+), 7 deletions(-) create mode 100644 scripts/bintray.gradle rename {auth0 => scripts}/maven.gradle (90%) diff --git a/auth0/build.gradle b/auth0/build.gradle index a0e7684e2..3c5721a9e 100644 --- a/auth0/build.gradle +++ b/auth0/build.gradle @@ -105,4 +105,5 @@ class Semver { } } -apply from: 'maven.gradle' \ No newline at end of file +apply from: '../scripts/maven.gradle' +apply from: '../scripts/bintray.gradle' \ No newline at end of file diff --git a/build.gradle b/build.gradle index 1a54ec7f1..ffcf8cb95 100644 --- a/build.gradle +++ b/build.gradle @@ -7,8 +7,7 @@ buildscript { dependencies { classpath 'com.android.tools.build:gradle:2.1.2' classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3' - // NOTE: Do not place your application dependencies here; they belong - // in the individual module build.gradle files + classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6' } } diff --git a/scripts/bintray.gradle b/scripts/bintray.gradle new file mode 100644 index 000000000..ca5ef0c56 --- /dev/null +++ b/scripts/bintray.gradle @@ -0,0 +1,32 @@ +if (hasProperty('bintray.user') && hasProperty('bintray.key') && hasProperty('bintray.gpg.password')) { + def bintrayUser = getProperty('bintray.user') + def bintrayApiKey = getProperty('bintray.key') + def bintrayPassphrase = getProperty('bintray.gpg.password') + apply plugin: 'com.jfrog.bintray' + bintray { + user = bintrayUser + key = bintrayApiKey + configurations = ['archives'] + dryRun = project.version.endsWith("-SNAPSHOT") + publish = false + pkg { + repo = 'lock-android' + name = 'Auth0.Android' + desc = 'Android toolkit for Auth0 API' + websiteUrl = 'https://github.com/auth0/auth0.android' + vcsUrl = 'scm:git@github.com:auth0/auth0.android.git' + licenses = ["MIT"] + userOrg = 'auth0' + publish = false + version { + gpg { + sign = true + passphrase = bintrayPassphrase + } + vcsTag = project.version + name = project.version + released = new Date() + } + } + } +} \ No newline at end of file diff --git a/auth0/maven.gradle b/scripts/maven.gradle similarity index 90% rename from auth0/maven.gradle rename to scripts/maven.gradle index 6afce0033..17acfb991 100644 --- a/auth0/maven.gradle +++ b/scripts/maven.gradle @@ -9,12 +9,12 @@ install { name 'Auth0-Android' description 'Android Java client library for the Auth0 platform' - url 'https://github.com/auth0/auth0.Android' + url 'https://github.com/auth0/Auth0.Android' licenses { license { name 'The MIT License (MIT)' - url 'https://raw.githubusercontent.com/auth0/auth0.Android/master/LICENSE' + url 'https://raw.githubusercontent.com/auth0/auth0.android/master/LICENSE' distribution 'repo' } } @@ -27,8 +27,8 @@ install { } scm { connection 'scm:git@github.com:auth0/auth0.Android.git' - developerConnection 'scm:git@github.com:auth0/auth0.Android.git' - url 'https://github.com/auth0/auth0.Android' + developerConnection 'scm:git@github.com:auth0/auth0.android.git' + url 'https://github.com/auth0/auth0.android' } }