1
1
/*
2
- * Copyright 2015-2018 the original author or authors.
2
+ * Copyright 2015-2020 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -26,12 +26,12 @@ plugins {
26
26
subprojects {
27
27
apply plugin : ' io.spring.dependency-management'
28
28
apply plugin : ' com.github.sherter.google-java-format'
29
-
30
- ext[' reactor-bom.version' ] = ' Dysprosium-RELEASE '
29
+
30
+ ext[' reactor-bom.version' ] = ' Dysprosium-SR7 '
31
31
ext[' logback.version' ] = ' 1.2.3'
32
32
ext[' findbugs.version' ] = ' 3.0.2'
33
- ext[' netty-bom.version' ] = ' 4.1.37 .Final'
34
- ext[' netty-boringssl.version' ] = ' 2.0.25 .Final'
33
+ ext[' netty-bom.version' ] = ' 4.1.48 .Final'
34
+ ext[' netty-boringssl.version' ] = ' 2.0.30 .Final'
35
35
ext[' hdrhistogram.version' ] = ' 2.1.10'
36
36
ext[' mockito.version' ] = ' 3.2.0'
37
37
ext[' slf4j.version' ] = ' 1.7.25'
@@ -88,11 +88,18 @@ subprojects {
88
88
repositories {
89
89
mavenCentral()
90
90
91
- if (version. endsWith(' BUILD- SNAPSHOT' ) || project. hasProperty(' platformVersion' )) {
91
+ if (version. endsWith(' SNAPSHOT' ) || project. hasProperty(' platformVersion' )) {
92
92
maven { url ' http://repo.spring.io/libs-snapshot' }
93
+ maven {
94
+ url ' https://oss.jfrog.org/artifactory/oss-snapshot-local'
95
+ }
93
96
}
94
97
}
95
98
99
+ tasks. withType(GenerateModuleMetadata ) {
100
+ enabled = false
101
+ }
102
+
96
103
plugins. withType(JavaPlugin ) {
97
104
compileJava {
98
105
sourceCompatibility = 1.8
@@ -102,21 +109,61 @@ subprojects {
102
109
}
103
110
104
111
javadoc {
112
+ def jdk = JavaVersion . current(). majorVersion
113
+ def jdkJavadoc = " https://docs.oracle.com/javase/$jdk /docs/api/"
114
+ if (JavaVersion . current(). isJava11Compatible()) {
115
+ jdkJavadoc = " https://docs.oracle.com/en/java/javase/$jdk /docs/api/"
116
+ }
105
117
options. with {
106
- links ' https://docs.oracle.com/javase/8/docs/api/ '
118
+ links jdkJavadoc
107
119
links ' https://projectreactor.io/docs/core/release/api/'
108
120
links ' https://netty.io/4.1/api/'
109
121
}
110
122
}
111
123
124
+ tasks. named(" javadoc" ). configure {
125
+ onlyIf { System . getenv(' SKIP_RELEASE' ) != " true" }
126
+ }
127
+
112
128
test {
113
129
useJUnitPlatform()
114
130
115
131
systemProperty " io.netty.leakDetection.level" , " ADVANCED"
116
132
}
117
133
118
- tasks. named(" javadoc" ). configure {
119
- onlyIf { System . getenv(' SKIP_RELEASE' ) != " true" }
134
+ // all test tasks will show FAILED for each test method,
135
+ // common exclusions, no scanning
136
+ project. tasks. withType(Test ). all {
137
+ testLogging {
138
+ events " FAILED"
139
+ showExceptions true
140
+ exceptionFormat " FULL"
141
+ stackTraceFilters " ENTRY_POINT"
142
+ maxGranularity 3
143
+ }
144
+
145
+ if (JavaVersion . current(). isJava9Compatible()) {
146
+ println " Java 9+: lowering MaxGCPauseMillis to 20ms in ${ project.name} ${ name} "
147
+ jvmArgs = [" -XX:MaxGCPauseMillis=20" ]
148
+ }
149
+
150
+ systemProperty(" java.awt.headless" , " true" )
151
+ systemProperty(" reactor.trace.cancel" , " true" )
152
+ systemProperty(" reactor.trace.nocapacity" , " true" )
153
+ systemProperty(" testGroups" , project. properties. get(" testGroups" ))
154
+ scanForTestClasses = false
155
+ exclude ' **/*Abstract*.*'
156
+
157
+ // allow re-run of failed tests only without special test tasks failing
158
+ // because the filter is too restrictive
159
+ filter. setFailOnNoMatchingTests(false )
160
+
161
+ // display intermediate results for special test tasks
162
+ afterSuite { desc , result ->
163
+ if (! desc. parent) { // will match the outermost suite
164
+ println (' \n ' + " ${ desc} Results: ${ result.resultType} (${ result.testCount} tests, ${ result.successfulTestCount} successes, ${ result.failedTestCount} failures, ${ result.skippedTestCount} skipped)" )
165
+ }
166
+ }
120
167
}
121
168
}
122
169
0 commit comments