forked from rburgst/okhttp-digest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
89 lines (72 loc) · 1.97 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
buildscript {
repositories {
jcenter()
}
}
plugins {
id "com.jfrog.bintray" version "1.3.1"
}
apply plugin: 'java'
if (new File("./gradle/localrepo.gradle").exists()) {
apply from: "./gradle/localrepo.gradle"
}
group = "com.burgstaller"
archivesBaseName = 'okhttp-digest'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenLocal()
jcenter()
}
ext {
okhttpVersion = "4.4.0"
}
dependencies {
implementation "com.squareup.okhttp3:okhttp:${okhttpVersion}"
testImplementation "com.squareup.okhttp3:logging-interceptor:${okhttpVersion}"
testImplementation "com.squareup.okhttp3:mockwebserver:${okhttpVersion}"
testImplementation 'junit:junit:4.12'
testImplementation 'org.assertj:assertj-core:3.9.1'
testImplementation 'org.mockito:mockito-core:2.15.0'
}
def siteUrl = 'https://github.com/rburgst/okhttp-digest'
def gitUrl = 'https://github.com/rburgst/okhttp-digest.git'
if (!hasProperty('bintray_user')) {
project.ext {
bintray_user = "undef"
bintray_api_key = "undef"
}
}
bintray {
user = property('bintray_user')
key = property('bintray_api_key')
configurations = ['archives'] //When uploading configuration files
pkg {
repo = 'android'
name = project.name
desc = 'digest authenticator for okhttp'
websiteUrl = siteUrl
issueTrackerUrl = 'https://github.com/rburgst/okhttp-digest/issues'
vcsUrl = gitUrl
licenses = ['Apache-2.0']
labels = ['android', 'okhttp']
publicDownloadNumbers = true
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
from sourceSets.main.allSource
classifier = 'sources'
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives javadocJar
archives sourcesJar
}
task findConventions {
doLast {
println project.getConvention()
}
}