forked from ringcentral/ringcentral-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
125 lines (114 loc) · 3.4 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
plugins {
id 'java'
id 'jacoco'
id 'com.github.kt3k.coveralls' version '2.8.1'
id 'com.jfrog.bintray' version '1.7.3'
id 'maven'
id 'maven-publish'
id 'java-library'
}
group 'com.ringcentral'
version '0.6.4'
repositories {
jcenter()
}
dependencies {
compile group: 'com.alibaba', name: 'fastjson', version: '1.2.31'
compile group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.7.0'
compile group: 'com.pubnub', name: 'pubnub-gson', version: '4.6.2'
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.mockito', name: 'mockito-core', version: '2.7.22'
testRuntime group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
}
jacocoTestReport {
reports {
xml.enabled true
}
afterEvaluate {
classDirectories = files(classDirectories.files.collect {
fileTree(dir: it, exclude: [
'com/ringcentral/definitions/**',
'com/ringcentral/paths/**'
])
})
}
}
def pomConfig = {
licenses {
license {
name "MIT"
url "https://opensource.org/licenses/MIT"
distribution "repo"
}
}
developers {
developer {
id "tylerlong"
name "Tyler Liu"
email "[email protected]"
}
}
scm {
url "https://github.com/ringcentral/ringcentral-java"
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
publishing {
publications {
MyPublication(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
groupId 'com.ringcentral'
artifactId 'ringcentral'
version '0.6.4'
pom.withXml {
def root = asNode()
root.appendNode('description', 'RingCentral Java SDK')
root.appendNode('name', 'ringcentral')
root.appendNode('url', 'https://github.com/ringcentral/ringcentral-java')
root.children().last() + pomConfig
}
}
}
}
bintray {
user = project.hasProperty('bintrayUser') ? property('bintrayUser') : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ? property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
publications = ['MyPublication']
publish = true
override = true
pkg {
repo = 'maven'
name = 'ringcentral'
userOrg = user
desc = 'RingCentral Java SDK'
licenses = ['MIT']
websiteUrl = 'https://github.com/ringcentral/ringcentral-java'
issueTrackerUrl = 'https://github.com/ringcentral/ringcentral-java/issues'
vcsUrl = 'https://github.com/ringcentral/ringcentral-java.git'
labels = ['RingCentral']
publicDownloadNumbers = true
githubRepo = 'ringcentral/ringcentral-java' //Optional Github repository
githubReleaseNotesFile = 'README.md' //Optional Github readme file
version {
name = '0.6.4'
desc = 'RingCentral Java SDK 0.6.4'
vcsTag = '0.6.4'
gpg {
sign = true
}
}
}
}