Skip to content

Commit a58c73c

Browse files
committed
Start version 4.0.0
* Upgrade to Gradle `8.12.1` * Upgrade to Spring Framework `7.0.0` * Upgrade to Spring Data `2025.1.0` * Upgrade to Kotlin `2.1.10` * Upgrade to RabbitMQ Client `5.24.0` * Upgrade to RabbitMQ Stream Client `0.22.0` * Other minor upgrades
1 parent 2aaa8db commit a58c73c

File tree

6 files changed

+83
-52
lines changed

6 files changed

+83
-52
lines changed

.github/dependabot.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,49 @@ updates:
3030
- org.awaitility:awaitility
3131

3232
- package-ecosystem: github-actions
33+
directory: /
34+
schedule:
35+
interval: weekly
36+
day: saturday
37+
labels:
38+
- 'type: task'
39+
groups:
40+
development-dependencies:
41+
patterns:
42+
- '*'
43+
44+
- package-ecosystem: gradle
45+
target-branch: 3.2.x
46+
directory: /
47+
schedule:
48+
interval: weekly
49+
day: saturday
50+
ignore:
51+
- dependency-name: '*'
52+
update-types:
53+
- version-update:semver-major
54+
- version-update:semver-minor
55+
open-pull-requests-limit: 10
56+
labels:
57+
- 'type: dependency-upgrade'
58+
groups:
59+
development-dependencies:
60+
update-types:
61+
- patch
62+
patterns:
63+
- com.gradle.*
64+
- com.github.spotbugs
65+
- io.spring.*
66+
- org.ajoberstar.grgit
67+
- org.antora
68+
- io.micrometer:micrometer-docs-generator
69+
- com.willowtreeapps.assertk:assertk-jvm
70+
- org.hibernate.validator:hibernate-validator
71+
- org.apache.httpcomponents.client5:httpclient5
72+
- org.awaitility:awaitility
73+
74+
- package-ecosystem: github-actions
75+
target-branch: 3.2.x
3376
directory: /
3477
schedule:
3578
interval: weekly

build.gradle

Lines changed: 31 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
buildscript {
2-
ext.kotlinVersion = '1.9.25'
2+
ext.kotlinVersion = '2.1.10'
33
ext.isCI = System.getenv('GITHUB_ACTION')
44
repositories {
55
mavenCentral()
66
gradlePluginPortal()
7-
maven { url 'https://repo.spring.io/plugins-release-local' }
8-
if (version.endsWith('SNAPSHOT')) {
9-
maven { url 'https://repo.spring.io/snapshot' }
10-
}
117
}
128
dependencies {
139
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
@@ -23,8 +19,8 @@ plugins {
2319
id 'io.spring.dependency-management' version '1.1.7' apply false
2420
id 'org.antora' version '1.0.0'
2521
id 'io.spring.antora.generate-antora-yml' version '0.0.1'
26-
id 'com.github.spotbugs' version '6.0.28'
27-
id 'io.freefair.aggregate-javadoc' version '8.10.2'
22+
id 'com.github.spotbugs' version '6.1.2'
23+
id 'io.freefair.aggregate-javadoc' version '8.11'
2824
}
2925

3026
description = 'Spring AMQP'
@@ -45,30 +41,30 @@ ext {
4541
}
4642
modifiedFiles.finalizeValueOnRead()
4743

48-
assertjVersion = '3.26.3'
44+
assertjVersion = '3.27.3'
4945
assertkVersion = '0.28.1'
5046
awaitilityVersion = '4.2.2'
5147
commonsHttpClientVersion = '5.4.1'
52-
commonsPoolVersion = '2.12.0'
48+
commonsPoolVersion = '2.12.1'
5349
hamcrestVersion = '3.0'
5450
hibernateValidationVersion = '8.0.2.Final'
5551
jacksonBomVersion = '2.18.2'
5652
jaywayJsonPathVersion = '2.9.0'
5753
junit4Version = '4.13.2'
5854
junitJupiterVersion = '5.11.4'
59-
kotlinCoroutinesVersion = '1.8.1'
55+
kotlinCoroutinesVersion = '1.10.1'
6056
log4jVersion = '2.24.3'
6157
logbackVersion = '1.5.16'
6258
micrometerDocsVersion = '1.0.4'
63-
micrometerVersion = '1.14.3'
64-
micrometerTracingVersion = '1.4.2'
65-
mockitoVersion = '5.14.2'
66-
rabbitmqStreamVersion = '0.18.0'
67-
rabbitmqVersion = '5.22.0'
59+
micrometerVersion = '1.15.0-SNAPSHOT'
60+
micrometerTracingVersion = '1.5.0-SNAPSHOT'
61+
mockitoVersion = '5.15.2'
62+
rabbitmqStreamVersion = '0.22.0'
63+
rabbitmqVersion = '5.24.0'
6864
reactorVersion = '2024.0.2'
69-
springDataVersion = '2024.1.2'
65+
springDataVersion = '2025.1.0-SNAPSHOT'
7066
springRetryVersion = '2.0.11'
71-
springVersion = '6.2.2'
67+
springVersion = '7.0.0-SNAPSHOT'
7268
testcontainersVersion = '1.20.4'
7369

7470
javaProjects = subprojects - project(':spring-amqp-bom')
@@ -150,7 +146,7 @@ ext {
150146
expandPlaceholders = '**/quick-tour.xml'
151147
javadocLinks = [
152148
'https://docs.oracle.com/en/java/javase/17/docs/api/',
153-
'https://jakarta.ee/specifications/platform/9/apidocs/',
149+
'https://jakarta.ee/specifications/platform/11/apidocs/',
154150
'https://docs.spring.io/spring-framework/docs/current/javadoc-api/'
155151
] as String[]
156152
}
@@ -213,18 +209,13 @@ configure(javaProjects) { subproject ->
213209
exclude group: 'org.hamcrest'
214210
}
215211

216-
// To avoid compiler warnings about @API annotations in JUnit code
217-
testCompileOnly 'org.apiguardian:apiguardian-api:1.0.0'
218-
219212
testImplementation 'org.jetbrains.kotlin:kotlin-reflect'
220213
testImplementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
221-
222-
223214
}
224215

225216
// enable all compiler warnings; individual projects may customize further
226217
ext.xLintArg = '-Xlint:all,-options,-processing,-deprecation'
227-
[compileJava, compileTestJava]*.options*.compilerArgs = [xLintArg]
218+
[compileJava, compileTestJava]*.options*.compilerArgs = [xLintArg, '-parameters']
228219

229220
publishing {
230221
publications {
@@ -310,8 +301,8 @@ configure(javaProjects) { subproject ->
310301
}
311302

312303
checkstyle {
313-
configDirectory.set(rootProject.file("src/checkstyle"))
314-
toolVersion = '10.18.2'
304+
configDirectory.set(rootProject.file('src/checkstyle'))
305+
toolVersion = '10.21.1'
315306
}
316307

317308
jar {
@@ -339,7 +330,6 @@ configure(javaProjects) { subproject ->
339330
}
340331

341332
check.dependsOn javadoc
342-
343333
}
344334

345335
project('spring-amqp') {
@@ -361,14 +351,9 @@ project('spring-amqp') {
361351
optionalApi 'com.fasterxml.jackson.module:jackson-module-parameter-names'
362352
optionalApi 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310'
363353
optionalApi 'com.fasterxml.jackson.datatype:jackson-datatype-joda'
364-
optionalApi('com.fasterxml.jackson.module:jackson-module-kotlin') {
365-
exclude group: 'org.jetbrains.kotlin'
366-
}
354+
optionalApi 'com.fasterxml.jackson.module:jackson-module-kotlin'
367355
// Spring Data projection message binding support
368-
optionalApi('org.springframework.data:spring-data-commons') {
369-
exclude group: 'org.springframework'
370-
exclude group: 'io.micrometer'
371-
}
356+
optionalApi 'org.springframework.data:spring-data-commons'
372357
optionalApi "com.jayway.jsonpath:json-path:$jaywayJsonPathVersion"
373358

374359
testImplementation "org.assertj:assertj-core:$assertjVersion"
@@ -409,6 +394,7 @@ project('spring-rabbit') {
409394
api 'org.springframework:spring-messaging'
410395
api 'org.springframework:spring-tx'
411396
api 'io.micrometer:micrometer-observation'
397+
412398
optionalApi 'org.springframework:spring-aop'
413399
optionalApi 'org.springframework:spring-webflux'
414400
optionalApi "org.apache.httpcomponents.client5:httpclient5:$commonsHttpClientVersion"
@@ -419,23 +405,23 @@ project('spring-rabbit') {
419405
optionalApi 'io.micrometer:micrometer-core'
420406
optionalApi 'io.micrometer:micrometer-tracing'
421407
// Spring Data projection message binding support
422-
optionalApi("org.springframework.data:spring-data-commons") {
423-
exclude group: 'org.springframework'
424-
}
408+
optionalApi 'org.springframework.data:spring-data-commons'
425409
optionalApi "com.jayway.jsonpath:json-path:$jaywayJsonPathVersion"
426410
optionalApi "org.apache.commons:commons-pool2:$commonsPoolVersion"
427411
optionalApi "org.jetbrains.kotlinx:kotlinx-coroutines-reactor:$kotlinCoroutinesVersion"
428412

429413
testApi project(':spring-rabbit-junit')
414+
430415
testImplementation("com.willowtreeapps.assertk:assertk-jvm:$assertkVersion")
431416
testImplementation "org.hibernate.validator:hibernate-validator:$hibernateValidationVersion"
432417
testImplementation 'io.micrometer:micrometer-observation-test'
433418
testImplementation 'io.micrometer:micrometer-tracing-bridge-brave'
434419
testImplementation 'io.micrometer:micrometer-tracing-test'
435420
testImplementation 'io.micrometer:micrometer-tracing-integration-test'
436-
testImplementation "org.testcontainers:rabbitmq"
421+
testImplementation 'org.testcontainers:rabbitmq'
437422
testImplementation 'org.testcontainers:junit-jupiter'
438423
testImplementation "org.apache.httpcomponents.client5:httpclient5:$commonsHttpClientVersion"
424+
439425
testRuntimeOnly 'com.fasterxml.jackson.core:jackson-core'
440426
testRuntimeOnly 'com.fasterxml.jackson.core:jackson-databind'
441427
testRuntimeOnly 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml'
@@ -461,13 +447,14 @@ project('spring-rabbit-stream') {
461447
optionalApi 'io.micrometer:micrometer-core'
462448

463449
testApi project(':spring-rabbit-junit')
450+
464451
testRuntimeOnly 'com.fasterxml.jackson.core:jackson-core'
465452
testRuntimeOnly 'com.fasterxml.jackson.core:jackson-databind'
466453
testRuntimeOnly 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml'
467454
testRuntimeOnly 'com.fasterxml.jackson.module:jackson-module-kotlin'
468455

469-
testImplementation "org.testcontainers:rabbitmq"
470-
testImplementation "org.testcontainers:junit-jupiter"
456+
testImplementation 'org.testcontainers:rabbitmq'
457+
testImplementation 'org.testcontainers:junit-jupiter'
471458
testImplementation 'org.apache.logging.log4j:log4j-slf4j-impl'
472459
testImplementation 'org.springframework:spring-webflux'
473460
testImplementation 'io.micrometer:micrometer-observation-test'
@@ -487,11 +474,12 @@ project('spring-rabbit-junit') {
487474
api 'org.springframework:spring-web'
488475
api 'org.junit.jupiter:junit-jupiter-api'
489476
api "org.assertj:assertj-core:$assertjVersion"
477+
490478
optionalApi("junit:junit:$junit4Version") {
491479
exclude group: 'org.hamcrest', module: 'hamcrest-core'
492480
}
493-
optionalApi "org.testcontainers:rabbitmq"
494-
optionalApi "org.testcontainers:junit-jupiter"
481+
optionalApi 'org.testcontainers:rabbitmq'
482+
optionalApi 'org.testcontainers:junit-jupiter'
495483
optionalApi "ch.qos.logback:logback-classic:$logbackVersion"
496484
optionalApi 'org.apache.logging.log4j:log4j-core'
497485
compileOnly 'org.apiguardian:apiguardian-api:1.0.0'
@@ -507,6 +495,7 @@ project('spring-rabbit-test') {
507495
api "org.hamcrest:hamcrest-library:$hamcrestVersion"
508496
api "org.hamcrest:hamcrest-core:$hamcrestVersion"
509497
api "org.mockito:mockito-core:$mockitoVersion"
498+
510499
testImplementation project(':spring-rabbit').sourceSets.test.output
511500
}
512501
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version=3.2.3-SNAPSHOT
1+
version=4.0.0-SNAPSHOT
22
org.gradle.jvmargs=-Xms512m -Xmx4g -Dfile.encoding=UTF-8
33
org.gradle.daemon=true
44
org.gradle.caching=true

gradle/publish-maven.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ publishing {
5353
developer {
5454
id = 'markfisher'
5555
name = 'Mark Fisher'
56-
email = 'mark.fisher@broadcom.com'
56+
email = 'mark.ryan.fisher@gmail.com'
5757
roles = ['project founder']
5858
}
5959
developer {

gradle/wrapper/gradle-wrapper.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionSha256Sum=7a00d51fb93147819aab76024feece20b6b84e420694101f276be952e08bef03
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
3+
distributionSha256Sum=8d97a97984f6cbd2b85fe4c60a743440a347544bf18818048e611f5288d46c94
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip
55
networkTimeout=10000
66
validateDistributionUrl=true
77
zipStoreBase=GRADLE_USER_HOME

settings.gradle

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ plugins {
1111

1212
rootProject.name = 'spring-amqp-dist'
1313

14-
include 'spring-amqp'
15-
include 'spring-amqp-bom'
16-
include 'spring-rabbit'
17-
include 'spring-rabbit-stream'
18-
include 'spring-rabbit-junit'
19-
include 'spring-rabbit-test'
14+
rootDir.eachDir { dir ->
15+
if (dir.name.startsWith('spring-')) {
16+
include ":${dir.name}"
17+
}
18+
}

0 commit comments

Comments
 (0)