2808 Commits

Author SHA1 Message Date
Artem Bilan
44f970880d Fix checkstyle-header.txt for current Copyright style
**Auto-cherry-pick to `3.2.x`**
2025-06-16 17:04:31 -04:00
Spring Builds
8416c07442 Update Copyright to -present instead of current year
* Remove unnecessary anymore Gradle `updateCopyrights`
2025-06-16 15:55:12 -04:00
dependabot[bot]
d874166cba Bump io.micrometer:micrometer-tracing-bom (#3106)
Bumps [io.micrometer:micrometer-tracing-bom](https://github.com/micrometer-metrics/tracing) from 1.5.1-SNAPSHOT to 1.5.2-SNAPSHOT.
- [Release notes](https://github.com/micrometer-metrics/tracing/releases)
- [Commits](https://github.com/micrometer-metrics/tracing/commits)

---
updated-dependencies:
- dependency-name: io.micrometer:micrometer-tracing-bom
  dependency-version: 1.5.2-SNAPSHOT
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-16 16:09:14 +00:00
Artem Bilan
9d45c6d6a0 Revert "Bump io.micrometer:micrometer-bom (#3102)"
This reverts commit 0cb9c35fee.
2025-06-16 11:22:36 -04:00
Artem Bilan
1add3b76e0 Revert "Bump io.micrometer:micrometer-tracing-bom (#3101)"
This reverts commit 9a63587740.
2025-06-16 11:22:24 -04:00
Artem Bilan
b46801727f Use main for merge-dependabot-pr
There are some improvements in the reusable merge dependabot PR workflow, including closing PR because of SNAPSHOT to SNAPSHOT update, which is wrong because we have to update from SNAPSHOT to its GA.

Signed-off-by: Artem Bilan <artem.bilan@broadcom.com>
2025-06-15 19:55:57 -04:00
dependabot[bot]
b69d796201 Bump org.junit:junit-bom from 5.13.0 to 5.13.1 (#3104)
Bumps [org.junit:junit-bom](https://github.com/junit-team/junit5) from 5.13.0 to 5.13.1.
- [Release notes](https://github.com/junit-team/junit5/releases)
- [Commits](https://github.com/junit-team/junit5/compare/r5.13.0...r5.13.1)

---
updated-dependencies:
- dependency-name: org.junit:junit-bom
  dependency-version: 5.13.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-14 08:10:17 -04:00
dependabot[bot]
33c616c094 Bump com.fasterxml.jackson:jackson-bom from 2.19.0 to 2.19.1 (#3103)
Bumps [com.fasterxml.jackson:jackson-bom](https://github.com/FasterXML/jackson-bom) from 2.19.0 to 2.19.1.
- [Commits](https://github.com/FasterXML/jackson-bom/compare/jackson-bom-2.19.0...jackson-bom-2.19.1)

---
updated-dependencies:
- dependency-name: com.fasterxml.jackson:jackson-bom
  dependency-version: 2.19.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-14 08:09:39 -04:00
dependabot[bot]
463584a233 Bump org.ajoberstar.grgit in the development-dependencies group (#3100)
Bumps the development-dependencies group with 1 update: [org.ajoberstar.grgit](https://github.com/ajoberstar/grgit).


Updates `org.ajoberstar.grgit` from 5.3.0 to 5.3.2
- [Release notes](https://github.com/ajoberstar/grgit/releases)
- [Commits](https://github.com/ajoberstar/grgit/compare/5.3.0...5.3.2)

---
updated-dependencies:
- dependency-name: org.ajoberstar.grgit
  dependency-version: 5.3.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: development-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-14 08:09:03 -04:00
dependabot[bot]
9a63587740 Bump io.micrometer:micrometer-tracing-bom (#3101)
Bumps [io.micrometer:micrometer-tracing-bom](https://github.com/micrometer-metrics/tracing) from 1.5.1-SNAPSHOT to 1.5.2-SNAPSHOT.
- [Release notes](https://github.com/micrometer-metrics/tracing/releases)
- [Commits](https://github.com/micrometer-metrics/tracing/commits)

---
updated-dependencies:
- dependency-name: io.micrometer:micrometer-tracing-bom
  dependency-version: 1.5.2-SNAPSHOT
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-14 02:49:47 +00:00
dependabot[bot]
0cb9c35fee Bump io.micrometer:micrometer-bom (#3102)
Bumps [io.micrometer:micrometer-bom](https://github.com/micrometer-metrics/micrometer) from 1.15.1-SNAPSHOT to 1.15.2-SNAPSHOT.
- [Release notes](https://github.com/micrometer-metrics/micrometer/releases)
- [Commits](https://github.com/micrometer-metrics/micrometer/commits)

---
updated-dependencies:
- dependency-name: io.micrometer:micrometer-bom
  dependency-version: 1.15.2-SNAPSHOT
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-14 02:46:31 +00:00
Artem Bilan
51dfa81682 Migrate release WF to Maven Central Portal
**Auto-cherry-pick to `3.2.x` & `3.1.x`**
2025-06-13 15:30:01 -04:00
Marco Cozzi
c3cc65dad9 GH-3079: Allow ACKs within the ShutdownTimeout period
Fixes: #3079
Issue link: https://github.com/spring-projects/spring-amqp/issues/3079

Remove `cancelled()` condition from the `BlockingQueueConsumer.commitIfNecessary()` to allow initiated acks to be committed.
The cancelled consumer means no new deliveries, but that does not mean we cannot ack outstanding messages.
Actually, this is a leftover after previous fix with assumption that messages have to be returned to the queue with `Recovery` command when consumer is cancelled.

Signed-off-by: Marco Cozzi <marco@codeatlas.it>

**Auto-cherry-pick to `3.2.x` & `3.1.x`**
2025-06-12 09:53:42 -04:00
Artem Bilan
87d4d75e4f Upgrade dependencies to the latest major/minor
* Upgrade Checkstyle to `10.25.0`
* Upgrade Antora extensions to te latest versions
2025-06-03 14:26:36 -04:00
dependabot[bot]
29bce2ae06 Bump io.spring.develocity.conventions (#3087)
Bumps the development-dependencies group with 1 update: [io.spring.develocity.conventions](https://github.com/spring-io/develocity-conventions).


Updates `io.spring.develocity.conventions` from 0.0.22 to 0.0.23
- [Release notes](https://github.com/spring-io/develocity-conventions/releases)
- [Commits](https://github.com/spring-io/develocity-conventions/compare/v0.0.22...v0.0.23)

---
updated-dependencies:
- dependency-name: io.spring.develocity.conventions
  dependency-version: 0.0.23
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: development-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-03 15:12:55 +00:00
Artem Bilan
4980f285b9 Fix Dependabot config for actual dependencies 2025-06-03 11:09:13 -04:00
Artem Bilan
09b99a3328 Bring back Maven snapshots repo for Reactor deps 2025-06-03 10:10:25 -04:00
Artem Bilan
943cf195ed Upgrade to Java 24; Gradle 8.14.1
* Add `org.gradle.toolchains.foojay-resolver-convention` for Java tool chain automatic downloads
* Fix Kotlin compile Gradle tasks for `jvmTarget`
2025-06-03 09:53:55 -04:00
Tran Ngoc Nhan
52a5e8ccdd Improve code examples in docs
* Use tabs attribute for code example
* Add missed method name for listener container bean definition example

Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
2025-06-02 10:27:18 -04:00
Artem Bilan
201a6f620e Migrate to io.spring.nullability Gradle plugin
There is an `io.spring.nullability` Gradle plugin for NullAway checks.
It includes `net.ltgt.errorprone` plugin transitively,
manages required dependencies,
covers respective configuration options
2025-06-02 09:37:01 -04:00
Tran Ngoc Nhan
f690ab7855 Improve connections document
* Add `springio/asciidoctor-extensions/configuration-properties-extension` to draw YAML properly in docs
* Refactor `connections.adoc` for proper `NodeLocator` API
* Show tabs for `ConnectionFactory` sample
* Tabs for Spring Boot properties sample

Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
2025-05-28 10:41:36 -04:00
dependabot[bot]
73fbccb518 Bump kotlinVersion from 2.1.20 to 2.1.21 (#3075)
Bumps `kotlinVersion` from 2.1.20 to 2.1.21.

Updates `org.jetbrains.kotlin:kotlin-gradle-plugin` from 2.1.20 to 2.1.21
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v2.1.20...v2.1.21)

Updates `org.jetbrains.kotlin:kotlin-allopen` from 2.1.20 to 2.1.21
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v2.1.20...v2.1.21)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlin:kotlin-gradle-plugin
  dependency-version: 2.1.21
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.jetbrains.kotlin:kotlin-allopen
  dependency-version: 2.1.21
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-17 08:18:27 -04:00
dependabot[bot]
014bb72c6b Bump org.springframework.retry:spring-retry from 2.0.11 to 2.0.12 (#3073)
Bumps [org.springframework.retry:spring-retry](https://github.com/spring-projects/spring-retry) from 2.0.11 to 2.0.12.
- [Release notes](https://github.com/spring-projects/spring-retry/releases)
- [Commits](https://github.com/spring-projects/spring-retry/compare/v2.0.11...v2.0.12)

---
updated-dependencies:
- dependency-name: org.springframework.retry:spring-retry
  dependency-version: 2.0.12
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-17 08:18:01 -04:00
Artem Bilan
f09900e77e GH-3038: Consistent handling of encoding in Jackson2MessageConverter
Fixes: #3038
Issue link: https://github.com/spring-projects/spring-amqp/issues/3038

The `AbstractJackson2MessageConverter.doFromMessage()` falls back to the default encoding
when no encoding in the message properties.
However, that should be handled as `objectMapper.readValue(byte[])` when no `supportedCTCharset` and `charsetIsUtf8`,
 not converted to String before with that default encoding.

**Cherry-pick to `3.2.x`**
2025-05-15 16:11:47 -04:00
Artem Bilan
3b1beab0f9 Upgrade to Jackson 2.19.0 2025-05-14 10:01:38 -04:00
dependabot[bot]
59ddab4fe1 Bump com.fasterxml.jackson:jackson-bom from 2.18.3 to 2.18.4 (#3065)
Bumps [com.fasterxml.jackson:jackson-bom](https://github.com/FasterXML/jackson-bom) from 2.18.3 to 2.18.4.
- [Commits](https://github.com/FasterXML/jackson-bom/compare/jackson-bom-2.18.3...jackson-bom-2.18.4)

---
updated-dependencies:
- dependency-name: com.fasterxml.jackson:jackson-bom
  dependency-version: 2.18.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-10 02:40:39 +00:00
Tran Ngoc Nhan
90a2f6be32 Docs: Improve Javadoc lonk and fix attribute annotation
Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
2025-05-05 16:58:45 +00:00
dependabot[bot]
6dd314f2c2 Bump com.uber.nullaway:nullaway in the development-dependencies group (#3061)
Bumps the development-dependencies group with 1 update: [com.uber.nullaway:nullaway](https://github.com/uber/NullAway).


Updates `com.uber.nullaway:nullaway` from 0.12.6 to 0.12.7
- [Release notes](https://github.com/uber/NullAway/releases)
- [Changelog](https://github.com/uber/NullAway/blob/master/CHANGELOG.md)
- [Commits](https://github.com/uber/NullAway/compare/v0.12.6...v0.12.7)

---
updated-dependencies:
- dependency-name: com.uber.nullaway:nullaway
  dependency-version: 0.12.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: development-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-02 22:40:42 -04:00
Artem Bilan
e210c97742 GH-3055: Fix DirectMLContainer for taskScheduler.shutdown()
Fixes: #3055
Issue link: https://github.com/spring-projects/spring-amqp/issues/3057

The internal `DirectMessageListenerContainer.taskScheduler` is not destroyed
when application context is closed.
The current `doStop()` implementation is only called from `Lifecycle.stop()`.
However, the application context calls the `SmartLifecycle.stop(Runnable)`.
That one, in turn, in the `AbstractMessageListenerContainer` calls a `shutdown()`,
which does not clean up `taskScheduler` in the `DirectMessageListenerContainer`
implementation.
In fact, this `shutdown()` is called from other volatile places in the `DirectMessageListenerContainer`,
where assumption is that `taskScheduler` is active.
Therefore, we cannot move `doStop()` extension into the `actualShutDown()` implementation.

* Extract `cleanUpTaskScheduler()` method in the `DirectMessageListenerContainer`
and call it from existing `doStop()`, from overridden `stop(Runnable)` and `destroy()`

**Cherry-pick to `3.2.x` & `3.1.x`**
2025-05-02 14:42:07 -04:00
Artem Bilan
f8a3744045 GH-3055: Deprecate JUnit 4 classes in the project
Fixes: https://github.com/spring-projects/spring-amqp/issues/3055

JUnit 4 is no longer actively maintained, and the last maintenance release was JUnit 4.13.2 in February 2021.
In addition, JUnit 4 has a Java 1.5 baseline.
Furthermore, the JUnit team is planning to release JUnit 6.0 with a Java 17 baseline later this year.

Since JUnit 5 support has been deprecated in Spring Framework, we also follow same theme and
deprecate for removal JUnit 4 rules implementations in favor of respective utils for JUnit 5
2025-04-28 16:04:13 -04:00
dependabot[bot]
f803718f30 Bump org.apache.httpcomponents.client5:httpclient5 (#3053)
Bumps the development-dependencies group with 1 update: [org.apache.httpcomponents.client5:httpclient5](https://github.com/apache/httpcomponents-client).


Updates `org.apache.httpcomponents.client5:httpclient5` from 5.4.3 to 5.4.4
- [Changelog](https://github.com/apache/httpcomponents-client/blob/rel/v5.4.4/RELEASE_NOTES.txt)
- [Commits](https://github.com/apache/httpcomponents-client/compare/rel/v5.4.3...rel/v5.4.4)

---
updated-dependencies:
- dependency-name: org.apache.httpcomponents.client5:httpclient5
  dependency-version: 5.4.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: development-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-28 11:15:21 -04:00
Tran Ngoc Nhan
4e4bcb1e03 Add javadoc Antora property for Spring Retry
* Fix small typos in the docs

Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
2025-04-28 10:47:53 -04:00
dependabot[bot]
40f142499d Bump org.jetbrains.kotlinx:kotlinx-coroutines-reactor (#3044)
Bumps [org.jetbrains.kotlinx:kotlinx-coroutines-reactor](https://github.com/Kotlin/kotlinx.coroutines) from 1.10.1 to 1.10.2.
- [Release notes](https://github.com/Kotlin/kotlinx.coroutines/releases)
- [Changelog](https://github.com/Kotlin/kotlinx.coroutines/blob/master/CHANGES.md)
- [Commits](https://github.com/Kotlin/kotlinx.coroutines/compare/1.10.1...1.10.2)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlinx:kotlinx-coroutines-reactor
  dependency-version: 1.10.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-12 14:04:36 +00:00
dependabot[bot]
8435961914 Bump org.junit:junit-bom from 5.12.1 to 5.12.2 (#3043)
Bumps [org.junit:junit-bom](https://github.com/junit-team/junit5) from 5.12.1 to 5.12.2.
- [Release notes](https://github.com/junit-team/junit5/releases)
- [Commits](https://github.com/junit-team/junit5/compare/r5.12.1...r5.12.2)

---
updated-dependencies:
- dependency-name: org.junit:junit-bom
  dependency-version: 5.12.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-12 10:01:04 -04:00
Artem Bilan
14fe215734 GH-3039: Move Recovery in BlockingQueueConsumer into stop()
Fixes: #3039
Issue link: https://github.com/spring-projects/spring-amqp/issues/3039

Currently, the `BlockingQueueConsumer` initiates a Basic Recovery command on the
channel for transactional consumer immediately after Basic Cancel.
However, it is possible still to try to handle in-flight messages during `shutdownTimeout`
in the listener container

* Leave only Basic Cancel command in the `BlockingQueueConsumer.basicCancel()` API
* Revert `BlockingQueueConsumer.nextMessage(timeout)` method logic to normal loop
until message pulled from the in-memory cache is `null`
* Call `basicCancel(true)` from the `stop()` is not cancelled yet
* Perform `channel.basicRecover()` for transactional channel in the `stop()`.
This `stop()` is usually called from the listener container when in-flight messages
have not been processed during `shutdownTimeout`

**Auto-cherry-pick to `3.2.x` & `3.1.x`**
2025-04-11 11:02:30 -04:00
dependabot[bot]
1dd3f4d078 Bump com.rabbitmq.client:amqp-client from 0.5.0-SNAPSHOT to 0.5.0
Bumps [com.rabbitmq.client:amqp-client](https://github.com/rabbitmq/rabbitmq-amqp-java-client) from 0.5.0-SNAPSHOT to 0.5.0.
- [Release notes](https://github.com/rabbitmq/rabbitmq-amqp-java-client/releases)
- [Commits](https://github.com/rabbitmq/rabbitmq-amqp-java-client/commits/v0.5.0)

---
updated-dependencies:
- dependency-name: com.rabbitmq.client:amqp-client
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-29 08:11:53 -04:00
dependabot[bot]
7d089af553 Bump the development-dependencies group with 2 updates
Bumps the development-dependencies group with 2 updates: [com.uber.nullaway:nullaway](https://github.com/uber/NullAway) and [org.apache.httpcomponents.client5:httpclient5](https://github.com/apache/httpcomponents-client).


Updates `com.uber.nullaway:nullaway` from 0.12.4 to 0.12.6
- [Release notes](https://github.com/uber/NullAway/releases)
- [Changelog](https://github.com/uber/NullAway/blob/master/CHANGELOG.md)
- [Commits](https://github.com/uber/NullAway/compare/v0.12.4...v0.12.6)

Updates `org.apache.httpcomponents.client5:httpclient5` from 5.4.2 to 5.4.3
- [Changelog](https://github.com/apache/httpcomponents-client/blob/rel/v5.4.3/RELEASE_NOTES.txt)
- [Commits](https://github.com/apache/httpcomponents-client/compare/rel/v5.4.2...rel/v5.4.3)

---
updated-dependencies:
- dependency-name: com.uber.nullaway:nullaway
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: development-dependencies
- dependency-name: org.apache.httpcomponents.client5:httpclient5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: development-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-29 08:10:37 -04:00
Artem Bilan
993e94a5fc GH-3032: Fix BlockingQueueConsumer for in-flight draining
Fixes: #3032
Issue link: https://github.com/spring-projects/spring-amqp/issues/3032

The fix for https://github.com/spring-projects/spring-amqp/issues/2941 has missed
"in-flight draining" for non-transactional consumers.

**Auto-cherry-pick to `3.2.x` & `3.1.x`**
2025-03-28 11:27:11 -04:00
dependabot[bot]
becce4e376 Bump kotlinVersion from 2.1.10 to 2.1.20 (#3028)
Bumps `kotlinVersion` from 2.1.10 to 2.1.20.

Updates `org.jetbrains.kotlin:kotlin-gradle-plugin` from 2.1.10 to 2.1.20
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v2.1.10...v2.1.20)

Updates `org.jetbrains.kotlin:kotlin-allopen` from 2.1.10 to 2.1.20
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v2.1.10...v2.1.20)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlin:kotlin-gradle-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.jetbrains.kotlin:kotlin-allopen
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-23 07:40:29 -04:00
dependabot[bot]
21595f16c3 Bump ch.qos.logback:logback-classic from 1.5.17 to 1.5.18 (#3027)
Bumps [ch.qos.logback:logback-classic](https://github.com/qos-ch/logback) from 1.5.17 to 1.5.18.
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](https://github.com/qos-ch/logback/compare/v_1.5.17...v_1.5.18)

---
updated-dependencies:
- dependency-name: ch.qos.logback:logback-classic
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-23 07:39:42 -04:00
Artem Bilan
8aa38bd0bb Use AtomicBoolean for receive ot ignore other messages
The `RabbitAmqpTemplate.receive()` uses an AMQP 1.0 `Consumer`
to receive a single message.
There is a race condition when we have several messages in the queue,
so after receiving one, this consumer may deliver the next one.

* Use `AtomicBoolean messageReceived` to accept only one message from the consumer.
Since the `CompletableFuture` closes that consumer on its completion, there is just small
chance that a new message would be handed to the handler.
And since we do nothing with this new message, it will come back to the queue after we close consumer.
2025-03-19 12:13:08 -04:00
Artem Bilan
d2bffec922 Increase timeouts for spring-rabbitmq-client tests 2025-03-19 11:36:04 -04:00
Artem Bilan
589baa634d Use convenient arguments() API the RabbitAmqpAdmin
Now `Management.ExchangeSpecification` and `Management.QueueSpecification` expose `arguments(Map<String, Object>)` API

Related to: https://github.com/rabbitmq/rabbitmq-amqp-java-client/issues/153
2025-03-17 17:07:35 -04:00
Artem Bilan
d6ded3fca2 Fix RabbitAmqpAdmin.purgeQueue for proper return
The `Management.queuePurge()` now returns a `PurgeStatus` abstraction,
where the `messageCount` property is what we expect on the `AmqpAdmin` contract.

Related to: https://github.com/rabbitmq/rabbitmq-amqp-java-client/issues/151
2025-03-17 16:22:15 -04:00
Artem Bilan
d3de2febc6 Move Milestone to SNAPSHOTs
* Upgrade to `awaitility-4.3.0`
* Upgrade to `mockito-5.16.1`
* Upgrade to `reactor-2025.0.0`
* Upgrade to RabbitMQ AMQP 1.0 Client `0.5.0`
2025-03-17 15:45:35 -04:00
Spring Builds
d34f427231 [artifactory-release] Next development version 2025-03-17 16:30:35 +00:00
Spring Builds
01091f3db0 [artifactory-release] Release version 4.0.0-M2 2025-03-17 16:30:34 +00:00
Artem Bilan
abaae9ca28 Fix Spring Data version to 2025.1.0-M1 2025-03-17 12:11:40 -04:00
Artem Bilan
568b9d854b Move deps to latest Milestones; prepare for release 2025-03-17 12:07:37 -04:00
Artem Bilan
063ae662a6 Fix management-rest-api.adoc for http-client
There is no `com.rabbitmq:http-client` (Hop) dependency anymore.
The `WebClient` is used internally in the project for tests.

Mention `WebClient` sample in the doc instead.

* Fix `broker-configuration.adoc` for the `RabbitAdmin.getQueueInfo()` API
2025-03-17 11:38:01 -04:00