Skip to content

Commit

Permalink
Bintray release scripts.
Browse files Browse the repository at this point in the history
Moved all scripts to single folder
  • Loading branch information
hzalaz committed Jul 7, 2016
1 parent b49a849 commit 92be1f8
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 7 deletions.
3 changes: 2 additions & 1 deletion auth0/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,5 @@ class Semver {
}
}

apply from: 'maven.gradle'
apply from: '../scripts/maven.gradle'
apply from: '../scripts/bintray.gradle'
3 changes: 1 addition & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}

Expand Down
32 changes: 32 additions & 0 deletions scripts/bintray.gradle
Original file line number Diff line number Diff line change
@@ -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:[email protected]: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()
}
}
}
}
8 changes: 4 additions & 4 deletions auth0/maven.gradle → scripts/maven.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}
Expand All @@ -27,8 +27,8 @@ install {
}
scm {
connection 'scm:[email protected]:auth0/auth0.Android.git'
developerConnection 'scm:[email protected]:auth0/auth0.Android.git'
url 'https://github.com/auth0/auth0.Android'
developerConnection 'scm:[email protected]:auth0/auth0.android.git'
url 'https://github.com/auth0/auth0.android'

}
}
Expand Down

0 comments on commit 92be1f8

Please sign in to comment.