Skip to content

Commit a9dec54

Browse files
committed
Bintray and Maven plugins
1 parent c5d0a9f commit a9dec54

4 files changed

Lines changed: 84 additions & 0 deletions

File tree

auth0/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ artifacts {
3636
archives javadocJar
3737
}
3838

39+
apply from: '../maven.gradle'
40+
apply from: '../bintray.gradle'
41+
3942
def defineVersion() {
4043
def current = describeGit(false)
4144
def snapshot = current == null

bintray.gradle

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
def bintrayUser = getProperty('bintray.user')
2+
def bintrayApiKey = getProperty('bintray.key')
3+
def bintrayPassphrase = getProperty('bintray.gpg.password')
4+
5+
if (bintrayUser != null && bintrayApiKey != null && bintrayPassphrase != null) {
6+
apply plugin: 'com.jfrog.bintray'
7+
bintray {
8+
user = bintrayUser
9+
key = bintrayApiKey
10+
configurations = ['archives']
11+
dryRun = project.version.endsWith("-SNAPSHOT")
12+
publish = false
13+
pkg {
14+
repo = 'lock-android'
15+
name = project.name
16+
desc = 'Java client library for the Auth0 platform'
17+
websiteUrl = 'https://github.com/auth0/auth0-api-java'
18+
vcsUrl = 'scm:git@github.com:auth0/auth0-api-java.git'
19+
licenses = ["MIT"]
20+
userOrg = 'auth0'
21+
publish = false
22+
version {
23+
gpg {
24+
sign = true
25+
passphrase = bintrayPassphrase
26+
}
27+
vcsTag = project.version
28+
name = project.version
29+
released = new Date()
30+
}
31+
}
32+
}
33+
}

build.gradle

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,14 @@ allprojects {
66
}
77
}
88

9+
buildscript {
10+
repositories {
11+
jcenter()
12+
}
13+
14+
dependencies {
15+
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
16+
}
17+
}
18+
19+

maven.gradle

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
apply plugin: 'maven'
2+
3+
install {
4+
repositories.mavenInstaller {
5+
pom {
6+
project {
7+
packaging 'jar'
8+
artifactId 'auth0'
9+
10+
name 'Auth0'
11+
description 'Java client library for the Auth0 platform'
12+
url 'https://github.com/auth0/auth0-api-java'
13+
14+
licenses {
15+
license {
16+
name 'The MIT License (MIT)'
17+
url 'https://raw.githubusercontent.com/auth0/auth0-api-java/master/LICENSE'
18+
distribution 'repo'
19+
}
20+
}
21+
developers {
22+
developer {
23+
id 'hzalaz'
24+
name 'Hernan Zalazar'
25+
email 'hernan@auth0.com'
26+
}
27+
}
28+
scm {
29+
connection 'scm:git@github.com:auth0/auth0-api-java.git'
30+
developerConnection 'scm:git@github.com:auth0/auth0-api-java.git'
31+
url 'https://github.com/auth0/auth0-api-java'
32+
33+
}
34+
}
35+
}
36+
}
37+
}

0 commit comments

Comments
 (0)