-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathbuild.gradle
91 lines (82 loc) · 2.33 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
plugins {
id 'java'
id 'maven-publish'
id 'java-library'
id 'signing'
}
group 'com.ringcentral'
version '3.2.3'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
implementation group: 'com.google.code.gson', name: 'gson', version: '2.10.1'
implementation group: 'com.squareup.okhttp3', name: 'okhttp', version: '4.11.0'
testImplementation group: 'junit', name: 'junit', version: '4.13.2'
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'ringcentral'
from components.java
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom {
name = 'RingCentral SDK'
description = 'RingCentral Java SDK'
url = 'https://github.com/ringcentral/ringcentral-java'
licenses {
license {
name = 'MIT'
url = 'https://opensource.org/licenses/MIT'
}
}
developers {
developer {
id = 'tylerliu'
name = 'Tyler Liu'
email = 'tyler.liu@ringcentral.com'
}
}
scm {
connection = 'scm:git:git://git@github.com:ringcentral/ringcentral-java.git'
developerConnection = 'scm:git:ssh://git@github.com:ringcentral/ringcentral-java.git'
url = 'https://github.com/ringcentral/ringcentral-java'
}
}
}
}
repositories {
maven {
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = ossrhUsername
password = ossrhPassword
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
javadoc {
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}
test {
testLogging {
exceptionFormat = 'full'
}
}