11buildscript {
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
3026description = ' 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
345335project(' 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}
0 commit comments