forked from GetStream/stream-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
125 lines (107 loc) · 3.44 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 "me.tatarka.retrolambda" version "3.7.1"
id 'java-library'
id 'eclipse'
id 'idea'
id 'maven-publish'
id 'signing'
id "com.prot.versioninfo" version "0.5"
}
group 'io.getstream.client'
version = '3.2.4'
dependencies {
sourceCompatibility = 1.8
targetCompatibility = 1.8
testImplementation 'junit:junit:4.12'
testImplementation 'com.pholser:junit-quickcheck-core:0.8.1'
testImplementation 'com.pholser:junit-quickcheck-generators:0.8.1'
testRuntimeOnly 'org.junit.vintage:junit-vintage-engine:5.2.0'
implementation 'com.google.guava:guava:20.0'
implementation 'com.squareup.okhttp3:okhttp:3.11.0'
implementation 'com.fasterxml.jackson.core:jackson-core:2.9.10'
implementation 'com.fasterxml.jackson.core:jackson-core:2.9.10'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.9.10'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.10'
implementation 'com.auth0:java-jwt:3.4.0'
api 'net.sourceforge.streamsupport:streamsupport:1.7.0'
api 'net.sourceforge.streamsupport:streamsupport-cfuture:1.7.0'
}
retrolambda {
javaVersion JavaVersion.VERSION_1_7
}
test {
testLogging {
exceptionFormat = 'full'
events 'standard_out', 'standard_error', "passed", "skipped", "failed"
}
}
repositories {
jcenter()
}
processResources {
filesMatching('stream-java2.info') {
expand(project.properties)
}
}
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
classifier = 'sources'
}
task javadocJar(type: Jar) {
from javadoc
classifier = 'javadoc'
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'stream-java'
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = 'client'
description = 'Stream API official client'
url = 'https://github.com/GetStream/stream-java'
scm {
url = 'scm:[email protected]:GetStream/stream-java.git'
connection = 'scm:[email protected]:GetStream/stream-java.git'
developerConnection = 'scm:[email protected]:GetStream/stream-java.git'
}
licenses {
license {
name = 'The 3-Clause BSD License'
url = 'https://opensource.org/licenses/BSD-3-Clause'
distribution = 'repo'
}
}
developers {
developer {
id = 'sirio7g'
name = 'Alessandro Pieri'
}
developer {
id = 'ferhatelmas'
name = 'Ferhat Elmas'
}
}
}
}
}
repositories {
maven {
url 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
credentials {
username = hasProperty('sonatypeUsername') ? sonatypeUsername : System.getenv('sonatypeUsername')
password = hasProperty('sonatypePassword') ? sonatypePassword : System.getenv('sonatypePassword')
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
javadoc {
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}