1515 */
1616
1717plugins {
18- id ' com.gradle.build-scan' version ' 1.16 '
18+ id ' com.gradle.build-scan' version ' 2.4.2 '
1919
20- id ' com.github.sherter.google-java-format' version ' 0.7.1 ' apply false
21- id ' com.jfrog.artifactory' version ' 4.7.3 ' apply false
20+ id ' com.github.sherter.google-java-format' version ' 0.8 ' apply false
21+ id ' com.jfrog.artifactory' version ' 4.9.10 ' apply false
2222 id ' com.jfrog.bintray' version ' 1.8.4' apply false
2323 id ' me.champeau.gradle.jmh' version ' 0.4.8' apply false
2424 id ' io.spring.dependency-management' version ' 1.0.7.RELEASE' apply false
@@ -28,74 +28,67 @@ plugins {
2828subprojects {
2929 apply plugin : ' io.spring.dependency-management'
3030 apply plugin : ' com.github.sherter.google-java-format'
31-
32- ext[' reactor-bom.version' ] = ' Dysprosium-M3 '
31+
32+ ext[' reactor-bom.version' ] = ' Dysprosium-RELEASE '
3333 ext[' logback.version' ] = ' 1.2.3'
3434 ext[' findbugs.version' ] = ' 3.0.2'
35- ext[' netty.version' ] = ' 4.1.37.Final'
35+ ext[' netty-bom .version' ] = ' 4.1.37.Final'
3636 ext[' netty-boringssl.version' ] = ' 2.0.25.Final'
3737 ext[' hdrhistogram.version' ] = ' 2.1.10'
3838 ext[' mockito.version' ] = ' 2.25.1'
3939 ext[' slf4j.version' ] = ' 1.7.25'
4040 ext[' jmh.version' ] = ' 1.21'
41- ext[' junit.version' ] = ' 5.1.0 '
41+ ext[' junit.version' ] = ' 5.5.2 '
4242 ext[' hamcrest.version' ] = ' 1.3'
4343 ext[' micrometer.version' ] = ' 1.0.6'
4444 ext[' assertj.version' ] = ' 3.11.1'
4545
46+ group = " io.rsocket"
47+
4648 googleJavaFormat {
4749 toolVersion = ' 1.6'
4850 }
4951
5052 ext {
51- if (project. hasProperty(' versionSuffix' )) {
52- project. version + = project. getProperty(' versionSuffix' )
53- }
53+ if (project. hasProperty(' versionSuffix' )) {
54+ project. version + = project. getProperty(' versionSuffix' )
55+ }
5456 }
5557
5658 dependencyManagement {
5759 imports {
5860 mavenBom " io.projectreactor:reactor-bom:${ ext['reactor-bom.version']} "
61+ mavenBom " io.netty:netty-bom:${ ext['netty-bom.version']} "
62+ mavenBom " org.junit:junit-bom:${ ext['junit.version']} "
5963 }
6064
6165 dependencies {
6266 dependency " ch.qos.logback:logback-classic:${ ext['logback.version']} "
6367 dependency " com.google.code.findbugs:jsr305:${ ext['findbugs.version']} "
64- dependency " io.netty:netty-buffer:${ ext['netty.version']} "
6568 dependency " io.netty:netty-tcnative-boringssl-static:${ ext['netty-boringssl.version']} "
6669 dependency " io.micrometer:micrometer-core:${ ext['micrometer.version']} "
6770 dependency " org.assertj:assertj-core:${ ext['assertj.version']} "
6871 dependency " org.hdrhistogram:HdrHistogram:${ ext['hdrhistogram.version']} "
6972 dependency " org.slf4j:slf4j-api:${ ext['slf4j.version']} "
70-
7173 dependencySet(group : ' org.mockito' , version : ext[' mockito.version' ]) {
7274 entry ' mockito-junit-jupiter'
7375 entry ' mockito-core'
7476 }
75-
76- dependencySet(group : ' org.junit.jupiter' , version : ext[' junit.version' ]) {
77- entry ' junit-jupiter-api'
78- entry ' junit-jupiter-engine'
79- entry ' junit-jupiter-params'
80- }
81-
8277 // TODO: Remove after JUnit5 migration
8378 dependency ' junit:junit:4.12'
8479 dependency " org.hamcrest:hamcrest-library:${ ext['hamcrest.version']} "
85- dependencySet(group : ' org.junit.vintage' , version : ext[' junit.version' ]) {
86- entry ' junit-vintage-engine'
87- }
88-
8980 dependencySet(group : ' org.openjdk.jmh' , version : ext[' jmh.version' ]) {
9081 entry ' jmh-core'
9182 entry ' jmh-generator-annprocess'
9283 }
9384 }
85+ generatedPomCustomization {
86+ enabled = false
87+ }
9488 }
9589
9690 repositories {
9791 mavenCentral()
98- maven { url ' http://repo.spring.io/milestone' } // temporary for Reactor Dysprosium
9992
10093 if (version. endsWith(' BUILD-SNAPSHOT' ) || project. hasProperty(' platformVersion' )) {
10194 maven { url ' http://repo.spring.io/libs-snapshot' }
@@ -123,7 +116,7 @@ subprojects {
123116
124117 systemProperty " io.netty.leakDetection.level" , " ADVANCED"
125118 }
126-
119+
127120 tasks. named(" javadoc" ). configure {
128121 onlyIf { System . getenv(' SKIP_RELEASE' ) != " true" }
129122 }
@@ -139,77 +132,23 @@ subprojects {
139132 classifier ' javadoc'
140133 from javadoc. destinationDir
141134 }
142- }
143135
144- plugins. withType(MavenPublishPlugin ) {
145- publishing {
146- publications {
147- maven(MavenPublication ) {
148- groupId ' io.rsocket'
149-
150- from components. java
151-
152- artifact sourcesJar
153- artifact javadocJar
154-
155- pom. withXml {
156- asNode(). ' :version' + {
157- resolveStrategy = DELEGATE_FIRST
158-
159- name project. name
160- description project. description
161- url ' http://rsocket.io'
162-
163- licenses {
164- license {
165- name ' The Apache Software License, Version 2.0'
166- url ' http://www.apache.org/license/LICENSE-2.0.txt'
167- }
168- }
169-
170- developers {
171- developer {
172- id ' robertroeser'
173- name ' Robert Roeser'
174- email ' robert@netifi.com'
175- }
176- developer {
177- id ' rdegnan'
178- name ' Ryland Degnan'
179- email ' ryland@netifi.com'
180- }
181- developer {
182- id ' yschimke'
183- name ' Yuri Schimke'
184- email ' yuri@schimke.ee'
185- }
186- developer {
187- id ' OlegDokuka'
188- name ' Oleh Dokuka'
189- email ' oleh@netifi.com'
190- }
191- developer {
192- id ' mostroverkhov'
193- name ' Maksym Ostroverkhov'
194- email ' m.ostroverkhov@gmail.com'
195- }
196- }
197-
198- scm {
199- connection ' scm:git:https://github.com/rsocket/rsocket-java.git'
200- developerConnection ' scm:git:https://github.com/rsocket/rsocket-java.git'
201- url ' https://github.com/rsocket/rsocket-java'
202- }
203- }
136+ plugins. withType(MavenPublishPlugin ) {
137+ publishing {
138+ publications {
139+ maven(MavenPublication ) {
140+ from components. java
141+ artifact sourcesJar
142+ artifact javadocJar
204143 }
205144 }
206145 }
207146 }
208147 }
148+
209149}
210150
211- apply from : ' artifactory.gradle'
212- apply from : ' bintray.gradle'
151+ apply from : " ${ rootDir} /gradle/publications.gradle"
213152
214153buildScan {
215154 termsOfServiceUrl = ' https://gradle.com/terms-of-service'
0 commit comments