forked from opentok/Opentok-Java-SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
125 lines (107 loc) · 4.12 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 "com.github.hierynomus.license" version "0.11.0"
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'signing'
apply plugin: 'idea'
apply plugin: 'eclipse'
group = 'com.tokbox'
archivesBaseName = 'opentok-server-sdk'
// TODO: how do we increment this before/after a release for deployment and development?
version = '2.3.2-alpha.1'
sourceCompatibility = 1.6
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
javadoc {
title = 'OpenTok Java SDK Reference'
destinationDir = file('docs')
exclude '**/util/**', '**/constants/**'
options {
locale 'en_US'
setMemberLevel JavadocMemberLevel.PUBLIC
}
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '[4.3,5.0['
testCompile group: 'com.github.tomakehurst', name: 'wiremock', version: '[1.45,1.99999)'
testCompile group: 'commons-lang', name: 'commons-lang', version: '[2.6,2.99999)'
compile group: 'com.ning', name: 'async-http-client', version: '[1.6.1,1.9['
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '[2.3.1,2.99999)'
compile group: 'commons-validator', name: 'commons-validator', version: '[1.4.0,1.99999)'
compile group: 'commons-codec', name: 'commons-codec', version: '[1.9,1.99999]'
// TODO: find out how to initialize these dependencies properly, or remove them
//compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.5'
//compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.5'
}
apply plugin: 'license'
license {
header rootProject.file('codequality/HEADER')
ext.year = Calendar.getInstance().get(Calendar.YEAR)
}
artifacts {
archives javadocJar, sourcesJar
}
ext.isReleaseVersion = hasProperty('isReleaseVersion') ? isReleaseVersion : false
signing {
required { isReleaseVersion && gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives
}
ext.ossrhUsername = hasProperty('ossrhUsername') ? ossrhUsername : 'dummyuser'
ext.ossrhPassword = hasProperty('ossrhPassword') ? ossrhPassword : 'dummypass'
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
pom.project {
name 'OpenTok Java SDK'
packaging 'jar'
description 'The OpenTok Ruby SDK lets you generate sessions and tokens for OpenTok applications. This version of the SDK also includes support for working with OpenTok 2.0 archives.'
url 'http://www.tokbox.com/opentok'
scm {
connection 'scm:git:https://github.com/opentok/Opentok-Java-SDK.git'
developerConnection 'scm:git:https://github.com/opentok/Opentok-Java-SDK.git'
url 'opentok.github.io/opentok-java-sdk'
}
licenses {
license {
name 'MIT License'
url 'http://www.opensource.org/licenses/mit-license'
}
}
developers {
developer {
id 'manasdpradhan'
name 'Manas Pradhan'
email '[email protected]'
organization 'TokBox, Inc.'
}
developer {
id 'aoberoi'
name 'Ankur Oberoi'
email '[email protected]'
organization 'TokBox, Inc.'
}
}
}
}
}
}
test {
maxHeapSize = "1024m"
}