forked from rsocket/rsocket-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
197 lines (166 loc) · 6.81 KB
/
build.gradle
File metadata and controls
197 lines (166 loc) · 6.81 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
/*
* Copyright 2015-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
plugins {
id 'com.gradle.build-scan' version '1.16'
id 'com.github.sherter.google-java-format' version '0.7.1'
id 'com.jfrog.artifactory' version '4.7.3' apply false
id 'com.jfrog.bintray' version '1.8.4' apply false
id 'me.champeau.gradle.jmh' version '0.4.7' apply false
id 'io.spring.dependency-management' version '1.0.6.RELEASE' apply false
id 'io.morethan.jmhreport' version '0.9.0' apply false
}
subprojects {
apply plugin: 'io.spring.dependency-management'
ext['reactor-bom.version'] = 'Californium-SR3'
ext['logback.version'] = '1.2.3'
ext['findbugs.version'] = '3.0.2'
ext['netty.version'] = '4.1.31.Final'
ext['netty-boringssl.version'] = '2.0.18.Final'
ext['hdrhistogram.version'] = '2.1.10'
ext['mockito.version'] = '2.23.0'
ext['slf4j.version'] = '1.7.25'
ext['jmh.version'] = '1.21'
ext['junit.version'] = '5.1.0'
ext['hamcrest.version'] = '1.3'
ext['micrometer.version'] = '1.0.6'
ext['assertj.version'] = '3.11.1'
dependencyManagement {
imports {
mavenBom "io.projectreactor:reactor-bom:${ext['reactor-bom.version']}"
}
dependencies {
dependency "ch.qos.logback:logback-classic:${ext['logback.version']}"
dependency "com.google.code.findbugs:jsr305:${ext['findbugs.version']}"
dependency "io.netty:netty-buffer:${ext['netty.version']}"
dependency "io.netty:netty-tcnative-boringssl-static:${ext['netty-boringssl.version']}"
dependency "io.micrometer:micrometer-core:${ext['micrometer.version']}"
dependency "org.assertj:assertj-core:${ext['assertj.version']}"
dependency "org.hdrhistogram:HdrHistogram:${ext['hdrhistogram.version']}"
dependency "org.mockito:mockito-core:${ ext['mockito.version']}"
dependency "org.slf4j:slf4j-api:${ext['slf4j.version']}"
dependencySet(group: 'org.junit.jupiter', version: ext['junit.version']) {
entry 'junit-jupiter-api'
entry 'junit-jupiter-engine'
entry 'junit-jupiter-params'
}
// TODO: Remove after JUnit5 migration
dependency 'junit:junit:4.12'
dependency "org.hamcrest:hamcrest-library:${ext['hamcrest.version']}"
dependencySet(group: 'org.junit.vintage', version: ext['junit.version']) {
entry 'junit-vintage-engine'
}
dependencySet(group: 'org.openjdk.jmh', version: ext['jmh.version']) {
entry 'jmh-core'
entry 'jmh-generator-annprocess'
}
}
}
repositories {
mavenCentral()
if (version.endsWith('BUILD-SNAPSHOT') || project.hasProperty('platformVersion')) {
maven { url 'http://repo.spring.io/libs-snapshot' }
}
}
plugins.withType(JavaPlugin) {
compileJava {
sourceCompatibility = 1.8
// TODO: Cleanup warnings so no need to exclude
options.compilerArgs << '-Xlint:all,-overloads,-rawtypes,-unchecked'
}
javadoc {
options.with {
links 'https://docs.oracle.com/javase/8/docs/api/'
links 'https://projectreactor.io/docs/core/release/api/'
links 'https://netty.io/4.1/api/'
}
}
test {
useJUnitPlatform()
systemProperty "io.netty.leakDetection.level", "ADVANCED"
}
}
plugins.withType(JavaLibraryPlugin) {
task sourcesJar(type: Jar) {
classifier 'sources'
from sourceSets.main.allJava
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier 'javadoc'
from javadoc.destinationDir
}
}
plugins.withType(MavenPublishPlugin) {
publishing {
publications {
maven(MavenPublication) {
groupId 'io.rsocket'
from components.java
artifact sourcesJar
artifact javadocJar
pom.withXml {
asNode().':version' + {
resolveStrategy = DELEGATE_FIRST
name project.name
description project.description
url 'http://rsocket.io'
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/license/LICENSE-2.0.txt'
}
}
developers {
developer {
id 'robertroeser'
name 'Robert Roeser'
email '[email protected]'
}
developer {
id 'rdegnan'
name 'Ryland Degnan'
email '[email protected]'
}
developer {
id 'yschimke'
name 'Yuri Schimke'
email '[email protected]'
}
}
scm {
connection 'scm:git:https://github.com/rsocket/rsocket-java.git'
developerConnection 'scm:git:https://github.com/rsocket/rsocket-java.git'
url 'https://github.com/rsocket/rsocket-java'
}
}
}
}
}
}
}
}
apply from: 'artifactory.gradle'
apply from: 'bintray.gradle'
buildScan {
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
termsOfServiceAgree = 'yes'
}
description = 'RSocket: Stream Oriented Messaging Passing with Reactive Stream Semantics.'
googleJavaFormat {
toolVersion = '1.5'
}
repositories {
mavenCentral()
}