From f7beb3ad3e1c79bf0444341374b0abcb15859a4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Sat, 12 Sep 2026 12:01:23 +0200 Subject: [PATCH] Start building against Spring AMQP 4.2.0-M2 snapshots See gh-51711 --- .../rabbitmq/autoconfigure/RabbitAutoConfigurationTests.java | 4 ++-- platform/spring-boot-dependencies/build.gradle | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module/spring-boot-rabbitmq/src/test/java/org/springframework/boot/rabbitmq/autoconfigure/RabbitAutoConfigurationTests.java b/module/spring-boot-rabbitmq/src/test/java/org/springframework/boot/rabbitmq/autoconfigure/RabbitAutoConfigurationTests.java index 2b321d01bd4..cb62cf86360 100644 --- a/module/spring-boot-rabbitmq/src/test/java/org/springframework/boot/rabbitmq/autoconfigure/RabbitAutoConfigurationTests.java +++ b/module/spring-boot-rabbitmq/src/test/java/org/springframework/boot/rabbitmq/autoconfigure/RabbitAutoConfigurationTests.java @@ -706,7 +706,7 @@ class RabbitAutoConfigurationTests { assertThat(adviceChain).isNotNull(); assertThat(adviceChain).hasSize(1); Advice advice = adviceChain[0]; - RetryTemplate retryTemplate = (RetryTemplate) ReflectionTestUtils.getField(advice, "retryOperations"); + RetryTemplate retryTemplate = (RetryTemplate) ReflectionTestUtils.getField(advice, "retryTemplate"); assertThat(retryTemplate).hasFieldOrPropertyWithValue("retryPolicy", retryPolicy); } @@ -788,7 +788,7 @@ class RabbitAutoConfigurationTests { Exception cause = new Exception("test"); invokeRecoverer(advice, new Object[] { "foo", message }, cause); then(messageRecoverer).should().recover(message, cause); - RetryTemplate retryTemplate = (RetryTemplate) ReflectionTestUtils.getField(advice, "retryOperations"); + RetryTemplate retryTemplate = (RetryTemplate) ReflectionTestUtils.getField(advice, "retryTemplate"); assertThat(retryTemplate).isNotNull(); RetryPolicy retryPolicy = (RetryPolicy) ReflectionTestUtils.getField(retryTemplate, "retryPolicy"); assertThat(retryPolicy).isNotNull(); diff --git a/platform/spring-boot-dependencies/build.gradle b/platform/spring-boot-dependencies/build.gradle index f4ceca41a02..bb99636d4f1 100644 --- a/platform/spring-boot-dependencies/build.gradle +++ b/platform/spring-boot-dependencies/build.gradle @@ -2599,7 +2599,7 @@ bom { ] } } - library("Spring AMQP", "4.2.0-M1") { + library("Spring AMQP", "4.2.0-SNAPSHOT") { firstParty() group("org.springframework.amqp") { bom("spring-amqp-bom")