Skip to content

Commit cd2cc12

Browse files
Dariusz Jędrzejczyksimonbasle
Dariusz Jędrzejczyk
andauthored
Replace Renovate with Dependabot (reactor#3377)
Configures `dependabot.yml` and removes `renovate.json`. Moved some dependencies from version catalog to `gradle/dependencies.gradle`. --------- Co-authored-by: Simon Baslé <[email protected]>
1 parent 569eb57 commit cd2cc12

File tree

10 files changed

+100
-121
lines changed

10 files changed

+100
-121
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

-71
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
@@ -136,6 +136,7 @@ configure(subprojects) { p ->
136136
apply plugin: 'java'
137137
apply plugin: 'jacoco'
138138
apply from: "${rootDir}/gradle/setup.gradle"
139+
apply from: "${rootDir}/gradle/dependencies.gradle"
139140

140141
description = 'Non-Blocking Reactive Foundation for the JVM'
141142
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

+7-19
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.4.27"
@@ -6,37 +13,18 @@ baselinePerfExtra = "3.4.9"
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
kotlin = "1.5.32"
1317
reactiveStreams = "1.0.4"
1418

1519
[libraries]
16-
archUnit = "com.tngtech.archunit:archunit:0.23.1"
17-
assertj = "org.assertj:assertj-core:3.23.1"
18-
awaitility = "org.awaitility:awaitility:4.2.0"
19-
blockhound = "io.projectreactor.tools:blockhound:1.0.7.RELEASE"
20-
byteBuddy-agent = { module = "net.bytebuddy:byte-buddy-agent", version.ref = "bytebuddy" }
21-
byteBuddy-api = { module = "net.bytebuddy:byte-buddy", version.ref = "bytebuddy" }
22-
cglib = "cglib:cglib:3.3.0"
23-
javaObjectLayout = "org.openjdk.jol:jol-core:0.16"
24-
jmh-annotations-processor = { module = "org.openjdk.jmh:jmh-generator-annprocess", version.ref = "jmh" }
25-
jmh-core = { module = "org.openjdk.jmh:jmh-core", version.ref = "jmh" }
2620
jsr166backport = "io.projectreactor:jsr166:1.0.0.RELEASE"
2721
jsr305 = "com.google.code.findbugs:jsr305:3.0.1"
28-
junit-bom = { module = "org.junit:junit-bom", version.ref = "junit" }
2922
kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "kotlin" }
30-
logback = "ch.qos.logback:logback-classic:1.2.11"
3123
micrometer = "io.micrometer:micrometer-core:1.3.0"
32-
mockito = "org.mockito:mockito-core:4.11.0"
3324
reactiveStreams = { module = "org.reactivestreams:reactive-streams", version.ref = "reactiveStreams" }
3425
reactiveStreams-tck = { module = "org.reactivestreams:reactive-streams-tck", version.ref = "reactiveStreams" }
3526
reactor-perfBaseline-core = { module = "io.projectreactor:reactor-core", version.ref = "baselinePerfCore" }
3627
reactor-perfBaseline-extra = { module = "io.projectreactor.addons:reactor-extra", version.ref = "baselinePerfExtra" }
37-
slf4j = "org.slf4j:slf4j-api:1.7.36"
38-
testNg = "org.testng:testng:7.5" # since 7.6 JDK8 is unsupported, don't bump
39-
throwingFunction = "com.pivovarit:throwing-function:1.5.1"
4028

4129
[plugins]
4230
artifactory = { id = "com.jfrog.artifactory", version = "4.31.0" }

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 libs.micrometer
@@ -91,29 +91,29 @@ dependencies {
9191
testImplementation libs.kotlin.stdlib
9292

9393
// Optional BlockHound support
94-
compileOnly libs.blockhound
94+
compileOnly "io.projectreactor.tools:blockhound:$blockhoundVersion"
9595
// Also make BlockHound visible in the CP of dedicated testset
96-
blockHoundTestImplementation libs.blockhound
96+
blockHoundTestImplementation "io.projectreactor.tools:blockhound:$blockhoundVersion"
9797

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

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

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

128128
}
129129

reactor-test/build.gradle

+4-4
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ dependencies {
4444
compileOnly libs.kotlin.stdlib
4545
testImplementation libs.kotlin.stdlib
4646

47-
testImplementation platform(libs.junit.bom)
47+
testImplementation platform("org.junit:junit-bom:$junitVersion")
4848
testImplementation "org.junit.jupiter:junit-jupiter-api"
4949
testImplementation "org.junit.jupiter:junit-jupiter-params"
5050
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine"
5151

52-
testRuntimeOnly libs.logback
53-
testImplementation libs.assertj
54-
testImplementation libs.mockito
52+
testRuntimeOnly "ch.qos.logback:logback-classic:$logbackVersion"
53+
testImplementation "org.assertj:assertj-core:$assertjVersion"
54+
testImplementation "org.mockito:mockito-core:$mockitoVersion"
5555
}
5656

5757
task downloadBaseline(type: Download) {

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)