Skip to content

Commit 9e77b00

Browse files
authored
Move main branch to 2.4 (#1354)
* Move main branch to 2.4 * New assertj error messages.
1 parent 62a24af commit 9e77b00

File tree

5 files changed

+81
-78
lines changed

5 files changed

+81
-78
lines changed

build.gradle

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,27 +39,27 @@ ext {
3939
modifiedFiles =
4040
files(grgit.status().unstaged.modified).filter{ f -> f.name.endsWith('.java') || f.name.endsWith('.kt') }
4141

42-
assertjVersion = '3.18.1'
43-
assertkVersion = '0.23'
42+
assertjVersion = '3.19.0'
43+
assertkVersion = '0.24'
4444
awaitilityVersion = '4.0.3'
4545
commonsHttpClientVersion = '4.5.13'
4646
commonsPoolVersion = '2.9.0'
4747
googleJsr305Version = '3.0.2'
4848
hamcrestVersion = '2.2'
4949
hibernateValidationVersion = '6.2.0.Final'
50-
jacksonBomVersion = '2.11.4'
50+
jacksonBomVersion = '2.12.3'
5151
jaywayJsonPathVersion = '2.4.0'
52-
junit4Version = '4.13.1'
52+
junit4Version = '4.13.2'
5353
junitJupiterVersion = '5.7.2'
54-
log4jVersion = '2.13.3'
54+
log4jVersion = '2.14.1'
5555
logbackVersion = '1.2.3'
56-
micrometerVersion = '1.5.14'
57-
mockitoVersion = '3.6.28'
58-
rabbitmqVersion = project.hasProperty('rabbitmqVersion') ? project.rabbitmqVersion : '5.9.0'
59-
rabbitmqHttpClientVersion = '3.8.0.RELEASE'
56+
micrometerVersion = '1.7.0'
57+
mockitoVersion = '3.9.0'
58+
rabbitmqVersion = project.hasProperty('rabbitmqVersion') ? project.rabbitmqVersion : '5.12.0'
59+
rabbitmqHttpClientVersion = '3.9.0.RELEASE'
6060
reactorVersion = '2020.0.7'
61-
springDataCommonsVersion = '2.4.9'
62-
springVersion = project.hasProperty('springVersion') ? project.springVersion : '5.3.7'
61+
springDataCommonsVersion = '2.5.1'
62+
springVersion = project.hasProperty('springVersion') ? project.springVersion : '5.3.8'
6363
springRetryVersion = '1.3.1'
6464
}
6565

@@ -325,6 +325,7 @@ project('spring-amqp') {
325325

326326
optionalApi 'com.fasterxml.jackson.core:jackson-core'
327327
optionalApi 'com.fasterxml.jackson.core:jackson-databind'
328+
optionalApi 'com.fasterxml.jackson.core:jackson-annotations'
328329
optionalApi 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml'
329330

330331
// Spring Data projection message binding support

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version=2.3.9-SNAPSHOT
1+
version=2.4.0-SNAPSHOT
22
org.gradlee.caching=true
33
org.gradle.daemon=true
44
org.gradle.parallel=true

spring-rabbit/src/test/java/org/springframework/amqp/rabbit/listener/MessageListenerContainerRetryIntegrationTests.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2020 the original author or authors.
2+
* Copyright 2002-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -150,7 +150,7 @@ void testStatelessRetryWithAllMessagesFailing() throws Exception {
150150
}
151151

152152
@Test
153-
void testStatefulRetryWithNoMessageIds() {
153+
void testStatefulRetryWithNoMessageIds() throws Exception {
154154

155155
int messageCount = 2;
156156
int txSize = 1;
@@ -165,11 +165,8 @@ void testStatefulRetryWithNoMessageIds() {
165165
this.retryTemplate.setRetryContextCache(new MapRetryContextCache(1));
166166
// The container should have shutdown, so there are now no active consumers
167167
assertThatThrownBy(() -> doTestStatefulRetry(messageCount, txSize, failFrequency, concurrentConsumers))
168-
.hasMessageContaining("Expecting:")
169-
.hasMessageContaining(" <0>")
170-
.hasMessageContaining("to be equal to")
171-
.hasMessageContaining(" <1>")
172-
.hasMessageContaining("but was not.");
168+
.hasMessageContaining("expected: 1")
169+
.hasMessageContaining("but was : 0");
173170
}
174171

175172
@RepeatedTest(10)

src/reference/asciidoc/appendix.adoc

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,68 @@ See <<whats-new>>.
1010
[[previous-whats-new]]
1111
=== Previous Releases
1212

13+
==== Changes in 2.3 Since 2.2
14+
15+
This section describes the changes between version 2.2 and version 2.3.
16+
See <<change-history>> for changes in previous versions.
17+
18+
===== Connection Factory Changes
19+
20+
Two additional connection factories are now provided.
21+
See <<choosing-factory>> for more information.
22+
23+
===== `@RabbitListener` Changes
24+
25+
You can now specify a reply content type.
26+
See <<reply-content-type>> for more information.
27+
28+
===== Message Converter Changes
29+
30+
The `Jackson2JMessageConverter` s can now deserialize abstract classes (including interfaces) if the `ObjectMapper` is configured with a custom deserializer.
31+
See <<jackson-abstract>> for more information.
32+
33+
===== Testing Changes
34+
35+
A new annotation `@SpringRabbitTest` is provided to automatically configure some infrastructure beans for when you are not using `SpringBootTest`.
36+
See <<spring-rabbit-test>> for more information.
37+
38+
===== RabbitTemplate Changes
39+
40+
The template's `ReturnCallback` has been refactored as `ReturnsCallback` for simpler use in lambda expressions.
41+
See <<template-confirms>> for more information.
42+
43+
When using returns and correlated confirms, the `CorrelationData` now requires a unique `id` property.
44+
See <<template-confirms>> for more information.
45+
46+
When using direct reply-to, you can now configure the template such that the server does not need to return correlation data with the reply.
47+
See <<direct-reply-to>> for more information.
48+
49+
===== Listener Container Changes
50+
51+
A new listener container property `consumeDelay` is now available; it is helpful when using the https://github.com/rabbitmq/rabbitmq-sharding[RabbitMQ Sharding Plugin].
52+
53+
The default `JavaLangErrorHandler` now calls `System.exit(99)`.
54+
To revert to the previous behavior (do nothing), add a no-op handler.
55+
56+
The containers now support the `globalQos` property to apply the `prefetchCount` globally for the channel rather than for each consumer on the channel.
57+
58+
See <<containerAttributes>> for more information.
59+
60+
===== MessagePostProcessor Changes
61+
62+
The compressing `MessagePostProcessor` s now use a comma to separate multiple content encodings instead of a colon.
63+
The decompressors can handle both formats but, if you produce messages with this version that are consumed by versions earlier than 2.2.12, you should configure the compressor to use the old delimiter.
64+
See the IMPORTANT note in <<post-processing>> for more information.
65+
66+
===== Multiple Broker Support Improvements
67+
68+
See <<multi-rabbit>> for more information.
69+
70+
===== RepublishMessageRecoverer Changes
71+
72+
A new subclass of this recoverer is not provided that supports publisher confirms.
73+
See <<async-listeners>> for more information.
74+
1375
==== Changes in 2.2 Since 2.1
1476

1577
This section describes the changes between version 2.1 and version 2.2.

src/reference/asciidoc/whats-new.adoc

Lines changed: 2 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,7 @@
11
[[whats-new]]
22
== What's New
33

4-
=== Changes in 2.3 Since 2.2
4+
=== Changes in 2.4 Since 2.3
55

6-
This section describes the changes between version 2.2 and version 2.3.
6+
This section describes the changes between version 2.4 and version 2.4.
77
See <<change-history>> for changes in previous versions.
8-
9-
==== Connection Factory Changes
10-
11-
Two additional connection factories are now provided.
12-
See <<choosing-factory>> for more information.
13-
14-
==== `@RabbitListener` Changes
15-
16-
You can now specify a reply content type.
17-
See <<reply-content-type>> for more information.
18-
19-
==== Message Converter Changes
20-
21-
The `Jackson2JMessageConverter` s can now deserialize abstract classes (including interfaces) if the `ObjectMapper` is configured with a custom deserializer.
22-
See <<jackson-abstract>> for more information.
23-
24-
==== Testing Changes
25-
26-
A new annotation `@SpringRabbitTest` is provided to automatically configure some infrastructure beans for when you are not using `SpringBootTest`.
27-
See <<spring-rabbit-test>> for more information.
28-
29-
==== RabbitTemplate Changes
30-
31-
The template's `ReturnCallback` has been refactored as `ReturnsCallback` for simpler use in lambda expressions.
32-
See <<template-confirms>> for more information.
33-
34-
When using returns and correlated confirms, the `CorrelationData` now requires a unique `id` property.
35-
See <<template-confirms>> for more information.
36-
37-
When using direct reply-to, you can now configure the template such that the server does not need to return correlation data with the reply.
38-
See <<direct-reply-to>> for more information.
39-
40-
==== Listener Container Changes
41-
42-
A new listener container property `consumeDelay` is now available; it is helpful when using the https://github.com/rabbitmq/rabbitmq-sharding[RabbitMQ Sharding Plugin].
43-
44-
The default `JavaLangErrorHandler` now calls `System.exit(99)`.
45-
To revert to the previous behavior (do nothing), add a no-op handler.
46-
47-
The containers now support the `globalQos` property to apply the `prefetchCount` globally for the channel rather than for each consumer on the channel.
48-
49-
See <<containerAttributes>> for more information.
50-
51-
==== MessagePostProcessor Changes
52-
53-
The compressing `MessagePostProcessor` s now use a comma to separate multiple content encodings instead of a colon.
54-
The decompressors can handle both formats but, if you produce messages with this version that are consumed by versions earlier than 2.2.12, you should configure the compressor to use the old delimiter.
55-
See the IMPORTANT note in <<post-processing>> for more information.
56-
57-
==== Multiple Broker Support Improvements
58-
59-
See <<multi-rabbit>> for more information.
60-
61-
==== RepublishMessageRecoverer Changes
62-
63-
A new subclass of this recoverer is not provided that supports publisher confirms.
64-
See <<async-listeners>> for more information.

0 commit comments

Comments
 (0)