forked from ringcentral/pubnub-jtools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
128 lines (104 loc) · 3.35 KB
/
build.gradle
File metadata and controls
128 lines (104 loc) · 3.35 KB
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
126
127
128
plugins {
id 'io.franzbecker.gradle-lombok' version '1.6'
id 'com.github.johnrengelman.shadow' version '1.2.3'
id "com.bmuschko.nexus" version "2.3.1"
id 'java'
id 'jacoco'
id 'maven'
id 'checkstyle'
id 'findbugs'
}
group = 'com.pubnub'
version = '4.0.7'
description = """"""
sourceCompatibility = 1.7
targetCompatibility = 1.7
configurations.all {
}
repositories {
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
maven { url "http://repo.maven.apache.org/maven2" }
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
compile group: 'com.squareup.retrofit2', name: 'retrofit', version:'2.0.2'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version:'2.7.3'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version:'2.7.3'
compile group: 'com.squareup.retrofit2', name: 'converter-jackson', version:'2.0.2'
compile group: 'com.squareup.okhttp3', name: 'logging-interceptor', version:'3.2.0'
compile group: 'org.slf4j', name: 'slf4j-nop', version:'1.7.21'
testCompile group: 'ch.qos.logback', name: 'logback-classic', version:'1.1.7'
testCompile group: 'ch.qos.logback', name: 'logback-core', version:'1.1.7'
testCompile group: 'junit', name: 'junit', version:'4.12'
testCompile group: 'com.github.tomakehurst', name: 'wiremock', version:'1.58'
testCompile group: 'org.hamcrest', name: 'hamcrest-all', version:'1.3'
testCompile group: 'com.jayway.awaitility', name: 'awaitility', version:'1.7.0'
}
jacoco {
toolVersion = "0.7.6.201602180812"
}
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
}
}
checkstyle {
configFile = new File(rootDir, "src/test/checkstyle.xml")
toolVersion = '6.17'
}
tasks.withType(Checkstyle) {
exclude '**/vendor/**', "**/*Test*"
reports {
xml.enabled = true
html.enabled = true
}
}
tasks.withType(FindBugs) {
exclude '**/vendor/**', "**/*Test*"
reports {
xml.enabled false
html.enabled true
}
}
check.dependsOn jacocoTestReport
processResources {
expand projectVersion: project.version
}
extraArchive {
sources = true
tests = true
javadoc = false // enable when uploading to nexus : ).
}
nexus {
sign = true
repositoryUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
snapshotRepositoryUrl = 'https://oss.sonatype.org/content/repositories/snapshots'
}
modifyPom {
project {
name 'PubNub Java SDK'
description 'PubNub is a cross-platform client-to-client (1:1 and 1:many) push service in the cloud, capable of\n' +
' broadcasting real-time messages to millions of web and mobile clients simultaneously, in less than a quarter\n' +
' second!'
url 'https://github.com/pubnub/java'
inceptionYear '2009'
scm {
url 'https://github.com/pubnub/java'
}
licenses {
license {
name 'MIT License'
url 'https://github.com/pubnub/pubnub-api/blob/master/LICENSE'
distribution 'repo'
}
}
developers {
developer {
id 'PubNub'
name 'PubNub'
email 'support@pubnub.com'
}
}
}
}