Skip to content

Commit b2c7476

Browse files
author
Dariusz Jędrzejczyk
committed
Merge reactor#3377 into 3.5.4
2 parents dca7de2 + cd2cc12 commit b2c7476

File tree

11 files changed

+108
-126
lines changed

11 files changed

+108
-126
lines changed

.github/dependabot.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "gradle"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
labels:
8+
- "type/dependency-upgrade"
9+
reviewers:
10+
- "reactor/core-team"
11+
# updates in oldest maintenance branch, we'll forward-merge up to main
12+
target-branch: "3.4.x"
13+
ignore:
14+
# JSR166 backport is fixed
15+
- dependency-name: "io.projectreactor:jsr166"
16+
# JSR305 backport is fixed to last version with annotations (3.0.1)
17+
- dependency-name: "com.google.code.findbugs:jsr305"
18+
# don't update Micrometer
19+
- dependency-name: "io.micrometer:*"
20+
# Kotlin: stay on 1.5
21+
- dependency-name: "org.jetbrains.kotlin*"
22+
versions: ["1.6.x"]
23+
# SLF4J: don't upgrade to v2
24+
- dependency-name: "org.slf4j:slf4j-api"
25+
versions: ["2.x"]
26+
# logback: don't upgrade to v1.3 or v1.4 (require slf4j v2, 1.4.x also requires JDK11+)
27+
- dependency-name: "ch.qos.logback:logback-classic"
28+
versions: ["1.3.x", "1.4.x"]
29+
# TestNG: 7.6+ doesn't support JDK8 anymore
30+
- dependency-name: "org.testng:testng"
31+
versions: ["7.6.x"]
32+
- package-ecosystem: "github-actions"
33+
directory: ".github/workflows"
34+
schedule:
35+
interval: "weekly"
36+
labels:
37+
- "type/chores"
38+
reviewers:
39+
- "reactor/core-team"
40+
# updates in oldest maintenance branch, we'll forward-merge up to main
41+
target-branch: "3.4.x"

.github/renovate.json

-66
This file was deleted.

benchmarks/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ dependencies {
1515
compileOnly libs.reactor.perfBaseline.core
1616
compileOnly libs.jsr305
1717

18-
implementation libs.jmh.core
18+
implementation "org.openjdk.jmh:jmh-core:$jmhVersion"
1919
implementation libs.reactor.perfBaseline.extra, {
2020
exclude group: 'io.projectreactor', module: 'reactor-core'
2121
}
22-
annotationProcessor libs.jmh.annotations.processor
22+
annotationProcessor "org.openjdk.jmh:jmh-generator-annprocess:$jmhVersion"
2323

2424
current project(':reactor-core')
2525
baseline libs.reactor.perfBaseline.core, {

build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ configure(subprojects) { p ->
141141
apply plugin: 'java'
142142
apply plugin: 'jacoco'
143143
apply from: "${rootDir}/gradle/setup.gradle"
144+
apply from: "${rootDir}/gradle/dependencies.gradle"
144145

145146
description = 'Non-Blocking Reactive Foundation for the JVM'
146147
group = 'io.projectreactor'

buildSrc/build.gradle

+4-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ repositories {
2323
gradlePluginPortal()
2424
}
2525

26+
apply from: "../gradle/dependencies.gradle"
27+
2628
dependencies {
27-
testImplementation libs.assertj
28-
testImplementation platform(libs.junit.bom)
29+
testImplementation "org.assertj:assertj-core:$assertjVersion"
30+
testImplementation platform("org.junit:junit-bom:$junitVersion")
2931
testImplementation "org.junit.jupiter:junit-jupiter-api"
3032
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine"
3133
}

gradle/dependencies.gradle

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
ext {
2+
// Library versions that Dependabot will monitor (in alphabetical order)
3+
// See also gradle/libs.versions.toml for manually maintained dependencies and Gradle plugins
4+
archUnitVersion = "0.23.1"
5+
assertjVersion = "3.23.1"
6+
awaitilityVersion = "4.2.0"
7+
blockhoundVersion = "1.0.7.RELEASE"
8+
byteBuddyVersion = "1.12.23"
9+
cglibVersion = "3.3.0"
10+
javaObjectLayoutVersion = "0.16"
11+
jmhVersion = "1.35"
12+
junitVersion = "5.9.2"
13+
logbackVersion = "1.2.11"
14+
mockitoVersion = "4.11.0"
15+
slf4jVersion = "1.7.36"
16+
testngVersion = "7.5" // since 7.6 JDK8 is unsupported, don't bump
17+
throwingFunctionVersion = "1.5.1"
18+
}

gradle/libs.versions.toml

+9-23
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Versions and dependencies declared here are NOT covered by Dependabot.
2+
# Therefore it focuses on versions that should be updated by hand:
3+
# - Reactor ecosystem
4+
# - Fixed versions (JSR166, JSR305...)
5+
# - Libraries that we want to more closely monitor / have an associated plugin (RS, Micrometer, Kotlin)
6+
# - Plugins (including Kotlin)
7+
18
[versions]
29
# Baselines, should be updated on every release
310
baseline-core-api = "3.5.3"
@@ -6,32 +13,14 @@ baselinePerfExtra = "3.5.0"
613

714
# Other shared versions
815
asciidoctor = "3.3.2"
9-
bytebuddy = "1.12.23"
10-
jmh = "1.35"
11-
junit = "5.9.2"
1216
#note that some micrometer artifacts like context-propagation has a different version directly set in libraries below
1317
micrometer = "1.10.4"
18+
kotlin = "1.5.32"
1419
reactiveStreams = "1.0.4"
1520

1621
[libraries]
17-
archUnit = "com.tngtech.archunit:archunit:0.23.1"
18-
assertj = "org.assertj:assertj-core:3.23.1"
19-
awaitility = "org.awaitility:awaitility:4.2.0"
20-
blockhound = "io.projectreactor.tools:blockhound:1.0.7.RELEASE"
21-
byteBuddy-agent = { module = "net.bytebuddy:byte-buddy-agent", version.ref = "bytebuddy" }
22-
byteBuddy-api = { module = "net.bytebuddy:byte-buddy", version.ref = "bytebuddy" }
23-
cglib = "cglib:cglib:3.3.0"
24-
javaObjectLayout = "org.openjdk.jol:jol-core:0.16"
25-
jmh-annotations-processor = { module = "org.openjdk.jmh:jmh-generator-annprocess", version.ref = "jmh" }
26-
jmh-core = { module = "org.openjdk.jmh:jmh-core", version.ref = "jmh" }
2722
jsr166backport = "io.projectreactor:jsr166:1.0.0.RELEASE"
2823
jsr305 = "com.google.code.findbugs:jsr305:3.0.1"
29-
junit-api = { module = "org.junit.jupiter:junit-jupiter-api" }
30-
junit-bom = { module = "org.junit:junit-bom", version.ref = "junit" }
31-
junit-engine = { module = "org.junit.jupiter:junit-jupiter-engine" }
32-
junit-params = { module = "org.junit.jupiter:junit-jupiter-params" }
33-
junit-platform = { module = "org.junit.platform:junit-platform-launcher" }
34-
logback = "ch.qos.logback:logback-classic:1.2.11"
3524
micrometer-bom = { module = "io.micrometer:micrometer-bom", version.ref = "micrometer" }
3625
micrometer-commons = { module = "io.micrometer:micrometer-commons" }
3726
micrometer-core = { module = "io.micrometer:micrometer-core" }
@@ -40,14 +29,11 @@ micrometer-docsGenerator = { module = "io.micrometer:micrometer-docs-generator",
4029
micrometer-observation-test = { module = "io.micrometer:micrometer-observation-test" }
4130
micrometer-tracing-test = "io.micrometer:micrometer-tracing-integration-test:1.0.2"
4231
micrometer-test = { module = "io.micrometer:micrometer-test" }
43-
mockito = "org.mockito:mockito-core:4.11.0"
32+
kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "kotlin" }
4433
reactiveStreams = { module = "org.reactivestreams:reactive-streams", version.ref = "reactiveStreams" }
4534
reactiveStreams-tck = { module = "org.reactivestreams:reactive-streams-tck", version.ref = "reactiveStreams" }
4635
reactor-perfBaseline-core = { module = "io.projectreactor:reactor-core", version.ref = "baselinePerfCore" }
4736
reactor-perfBaseline-extra = { module = "io.projectreactor.addons:reactor-extra", version.ref = "baselinePerfExtra" }
48-
slf4j = "org.slf4j:slf4j-api:1.7.36"
49-
testNg = "org.testng:testng:7.5" # since 7.6 JDK8 is unsupported, don't bump
50-
throwingFunction = "com.pivovarit:throwing-function:1.5.1"
5137

5238
[plugins]
5339
artifactory = { id = "com.jfrog.artifactory", version = "4.31.0" }

reactor-core-micrometer/build.gradle

+5-5
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ dependencies {
4747
implementation platform(libs.micrometer.bom)
4848
api libs.micrometer.core
4949

50-
testImplementation platform(libs.junit.bom)
50+
testImplementation platform("org.junit:junit-bom:$junitVersion")
5151
testImplementation "org.junit.jupiter:junit-jupiter-api"
5252
testImplementation "org.junit.platform:junit-platform-launcher"
5353
testImplementation "org.junit.jupiter:junit-jupiter-params"
@@ -68,10 +68,10 @@ dependencies {
6868
// Needs sourceSets.test.output because tests there use helpers like AutoDisposingRule etc.
6969
testImplementation project(":reactor-core").sourceSets.test.output
7070

71-
testRuntimeOnly libs.logback
72-
testImplementation libs.assertj
73-
testImplementation libs.mockito
74-
testImplementation libs.awaitility
71+
testRuntimeOnly "ch.qos.logback:logback-classic:$logbackVersion" //need to access API to decrease some tests verbosity
72+
testImplementation "org.assertj:assertj-core:$assertjVersion"
73+
testImplementation "org.mockito:mockito-core:$mockitoVersion"
74+
testImplementation "org.awaitility:awaitility:$awaitilityVersion"
7575
}
7676

7777
tasks.withType(Test).all {

reactor-core/build.gradle

+14-14
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,15 @@ dependencies {
7373
*/
7474
exclude group: 'junit', module: 'junit'
7575
}
76-
tckTestImplementation libs.testNg
76+
tckTestImplementation "org.testng:testng:$testngVersion"
7777

7878
// JSR-305 annotations
7979
compileOnly libs.jsr305
8080
testCompileOnly libs.jsr305
8181

8282
// Optional Logging Operator
83-
compileOnly libs.slf4j
84-
testCompileOnly libs.slf4j
83+
compileOnly "org.slf4j:slf4j-api:$slf4jVersion"
84+
testCompileOnly "org.slf4j:slf4j-api:$slf4jVersion"
8585

8686
// Optional Metrics
8787
compileOnly platform(libs.micrometer.bom)
@@ -92,29 +92,29 @@ dependencies {
9292
compileOnly libs.micrometer.contextPropagation
9393

9494
// Optional BlockHound support
95-
compileOnly libs.blockhound
95+
compileOnly "io.projectreactor.tools:blockhound:$blockhoundVersion"
9696
// Also make BlockHound visible in the CP of dedicated testset
97-
blockHoundTestImplementation libs.blockhound
97+
blockHoundTestImplementation "io.projectreactor.tools:blockhound:$blockhoundVersion"
9898

9999
// Optional JDK 9 Converter
100100
jsr166backport libs.jsr166backport
101101

102102
// Testing
103-
testImplementation platform(libs.junit.bom)
103+
testImplementation platform("org.junit:junit-bom:$junitVersion")
104104
testImplementation "org.junit.jupiter:junit-jupiter-api"
105105
testImplementation "org.junit.platform:junit-platform-launcher"
106106
testImplementation "org.junit.jupiter:junit-jupiter-params"
107107
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine"
108108
testImplementation(project(":reactor-test")) {
109109
exclude module: 'reactor-core'
110110
}
111-
testImplementation libs.logback //need to access API to decrease some tests verbosity
112-
testImplementation libs.assertj
113-
testImplementation libs.mockito
114-
testImplementation libs.javaObjectLayout
115-
testImplementation libs.awaitility
116-
testImplementation libs.throwingFunction
117-
testImplementation libs.archUnit
111+
testImplementation "ch.qos.logback:logback-classic:$logbackVersion" //need to access API to decrease some tests verbosity
112+
testImplementation "org.assertj:assertj-core:$assertjVersion"
113+
testImplementation "org.mockito:mockito-core:$mockitoVersion"
114+
testImplementation "org.openjdk.jol:jol-core:$javaObjectLayoutVersion"
115+
testImplementation "org.awaitility:awaitility:$awaitilityVersion"
116+
testImplementation "com.pivovarit:throwing-function:$throwingFunctionVersion"
117+
testImplementation "com.tngtech.archunit:archunit:$archUnitVersion"
118118

119119
// withMicrometerTest is a test-set that validates what happens when micrometer *IS*
120120
// on the classpath. Needs sourceSets.test.output because tests there use helpers like AutoDisposingRule etc.
@@ -127,7 +127,7 @@ dependencies {
127127
jcstressImplementation(project(":reactor-test")) {
128128
exclude module: 'reactor-core'
129129
}
130-
jcstressImplementation libs.logback
130+
jcstressImplementation "ch.qos.logback:logback-classic:$logbackVersion"
131131

132132
}
133133

reactor-test/build.gradle

+5-5
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ dependencies {
4040
api project(":reactor-core")
4141
compileOnly libs.jsr305
4242

43-
testImplementation platform(libs.junit.bom)
43+
testImplementation platform("org.junit:junit-bom:$junitVersion")
4444
testImplementation "org.junit.jupiter:junit-jupiter-api"
4545
testImplementation "org.junit.jupiter:junit-jupiter-params"
4646
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine"
4747

48-
testRuntimeOnly libs.logback
49-
testImplementation libs.assertj
50-
testImplementation libs.mockito
48+
testRuntimeOnly "ch.qos.logback:logback-classic:$logbackVersion"
49+
testImplementation "org.assertj:assertj-core:$assertjVersion"
50+
testImplementation "org.mockito:mockito-core:$mockitoVersion"
5151
}
5252

5353
task downloadBaseline(type: Download) {
@@ -134,4 +134,4 @@ tasks.withType(Test).all {
134134
useJUnitPlatform()
135135
}
136136

137-
check.dependsOn japicmp
137+
check.dependsOn japicmp

reactor-tools/build.gradle

+9-9
Original file line numberDiff line numberDiff line change
@@ -38,25 +38,25 @@ dependencies {
3838
compileOnly libs.jsr305
3939
compileOnly libs.jsr305
4040

41-
shaded libs.byteBuddy.api
42-
shaded libs.byteBuddy.agent
41+
shaded "net.bytebuddy:byte-buddy:$byteBuddyVersion"
42+
shaded "net.bytebuddy:byte-buddy-agent:$byteBuddyVersion"
4343
for (dependency in project.configurations.shaded.dependencies) {
4444
compileOnly(dependency)
4545
testRuntimeOnly(dependency)
4646
javaAgentTestRuntimeOnly(dependency)
4747
}
4848

49-
testImplementation platform(libs.junit.bom)
49+
testImplementation platform("org.junit:junit-bom:$junitVersion")
5050
testImplementation "org.junit.jupiter:junit-jupiter-api"
5151
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine"
5252

53-
testImplementation libs.assertj
54-
testImplementation libs.cglib
53+
testImplementation "org.assertj:assertj-core:$assertjVersion"
54+
testImplementation "cglib:cglib:$cglibVersion"
5555

56-
jarFileTestImplementation libs.assertj
56+
jarFileTestImplementation "org.assertj:assertj-core:$assertjVersion"
5757

5858
buildPluginTestImplementation gradleTestKit()
59-
buildPluginTestImplementation platform(libs.junit.bom)
59+
buildPluginTestImplementation platform("org.junit:junit-bom:$junitVersion")
6060
buildPluginTestImplementation "org.junit.jupiter:junit-jupiter-api"
6161
buildPluginTestRuntimeOnly "org.junit.jupiter:junit-jupiter-engine"
6262
}
@@ -177,8 +177,8 @@ task generateMockGradle(type: Copy) {
177177
CORE: coreJar,
178178
AGENT: agentJar,
179179
REACTIVE_STREAMS_VERSION: libs.versions.reactiveStreams.get(),
180-
JUNIT_BOM_VERSION: libs.versions.junit.get(),
181-
BYTE_BUDDY_VERSION: libs.versions.bytebuddy.get()
180+
JUNIT_BOM_VERSION: "$junitVersion".toString(),
181+
BYTE_BUDDY_VERSION: "$byteBuddyVersion".toString()
182182
])
183183
}
184184

0 commit comments

Comments
 (0)