Skip to content

Commit 15a53a4

Browse files
committed
Upgrade deps including Gradle plugins
* Remove some deps which are now managed transitively from RabbitMQ `stream-client`
1 parent f5f368d commit 15a53a4

File tree

9 files changed

+21
-26
lines changed

9 files changed

+21
-26
lines changed

build.gradle

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ buildscript {
1818
plugins {
1919
id 'base'
2020
id 'idea'
21-
id 'org.ajoberstar.grgit' version '5.2.2'
21+
id 'org.ajoberstar.grgit' version '5.3.0'
2222
id 'io.spring.nohttp' version '0.0.11'
2323
id 'io.spring.dependency-management' version '1.1.6' apply false
2424
id 'org.antora' version '1.0.0'
2525
id 'io.spring.antora.generate-antora-yml' version '0.0.1'
2626
id 'com.github.spotbugs' version '6.0.24'
27-
id 'io.freefair.aggregate-javadoc' version '8.6'
27+
id 'io.freefair.aggregate-javadoc' version '8.10.2'
2828
}
2929

3030
description = 'Spring AMQP'
@@ -49,9 +49,9 @@ ext {
4949
assertkVersion = '0.28.1'
5050
awaitilityVersion = '4.2.2'
5151
commonsCompressVersion = '1.27.1'
52-
commonsHttpClientVersion = '5.3.1'
52+
commonsHttpClientVersion = '5.4'
5353
commonsPoolVersion = '2.12.0'
54-
hamcrestVersion = '2.2'
54+
hamcrestVersion = '3.0'
5555
hibernateValidationVersion = '8.0.1.Final'
5656
jacksonBomVersion = '2.18.0'
5757
jaywayJsonPathVersion = '2.9.0'
@@ -60,20 +60,17 @@ ext {
6060
kotlinCoroutinesVersion = '1.8.1'
6161
log4jVersion = '2.24.1'
6262
logbackVersion = '1.5.8'
63-
lz4Version = '1.8.0'
6463
micrometerDocsVersion = '1.0.4'
6564
micrometerVersion = '1.14.0-SNAPSHOT'
6665
micrometerTracingVersion = '1.4.0-SNAPSHOT'
67-
mockitoVersion = '5.13.0'
68-
rabbitmqStreamVersion = '0.15.0'
69-
rabbitmqVersion = '5.21.0'
66+
mockitoVersion = '5.14.1'
67+
rabbitmqStreamVersion = '0.17.0'
68+
rabbitmqVersion = '5.22.0'
7069
reactorVersion = '2024.0.0-SNAPSHOT'
71-
snappyVersion = '1.1.10.7'
72-
springDataVersion = '2024.0.4'
70+
springDataVersion = '2024.1.0-SNAPSHOT'
7371
springRetryVersion = '2.0.9'
7472
springVersion = '6.2.0-SNAPSHOT'
7573
testcontainersVersion = '1.20.2'
76-
zstdJniVersion = '1.5.6-6'
7774

7875
javaProjects = subprojects - project(':spring-amqp-bom')
7976
}
@@ -315,7 +312,7 @@ configure(javaProjects) { subproject ->
315312

316313
checkstyle {
317314
configDirectory.set(rootProject.file("src/checkstyle"))
318-
toolVersion = '10.8.0'
315+
toolVersion = '10.18.2'
319316
}
320317

321318
jar {
@@ -470,12 +467,10 @@ project('spring-rabbit-stream') {
470467
testRuntimeOnly 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml'
471468
testRuntimeOnly 'com.fasterxml.jackson.module:jackson-module-kotlin'
472469
testRuntimeOnly "org.apache.commons:commons-compress:$commonsCompressVersion"
473-
testRuntimeOnly "org.xerial.snappy:snappy-java:$snappyVersion"
474-
testRuntimeOnly "org.lz4:lz4-java:$lz4Version"
475-
testRuntimeOnly "com.github.luben:zstd-jni:$zstdJniVersion"
470+
476471
testImplementation "org.testcontainers:rabbitmq"
477472
testImplementation "org.testcontainers:junit-jupiter"
478-
testImplementation "org.apache.logging.log4j:log4j-slf4j-impl:$log4jVersion"
473+
testImplementation 'org.apache.logging.log4j:log4j-slf4j-impl'
479474
testImplementation 'org.springframework:spring-webflux'
480475
testImplementation 'io.micrometer:micrometer-observation-test'
481476
testImplementation 'io.micrometer:micrometer-tracing-bridge-brave'

spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitTemplate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2833,7 +2833,7 @@ public void handleDelivery(String consumerTag, Envelope envelope, BasicPropertie
28332833
return consumer;
28342834
}
28352835

2836-
private static class PendingReply {
2836+
private static final class PendingReply {
28372837

28382838
@Nullable
28392839
private volatile String savedReplyTo;

spring-rabbit/src/test/java/org/springframework/amqp/rabbit/connection/PublisherCallbackChannelTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2022 the original author or authors.
2+
* Copyright 2019-2024 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.
@@ -183,7 +183,7 @@ void confirmAlwaysAfterReturn() throws InterruptedException {
183183
assertThat(listener.calls).containsExactly("return", "confirm", "return", "confirm");
184184
}
185185

186-
private static class TheListener implements Listener {
186+
private static final class TheListener implements Listener {
187187

188188
private final UUID uuid = UUID.randomUUID();
189189

spring-rabbit/src/test/java/org/springframework/amqp/rabbit/core/BatchingRabbitTemplateTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ private int getStreamLevel(Object stream) throws Exception {
676676
return TestUtils.getPropertyValue(zipStream, "def.level", Integer.class);
677677
}
678678

679-
private static class HeaderPostProcessor implements MessagePostProcessor {
679+
private static final class HeaderPostProcessor implements MessagePostProcessor {
680680
@Override
681681
public Message postProcessMessage(Message message) throws AmqpException {
682682
message.getMessageProperties().getHeaders().put("someHeader", "someValue");

spring-rabbit/src/test/java/org/springframework/amqp/rabbit/core/RabbitTemplateIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1733,7 +1733,7 @@ private class PlannedException extends RuntimeException {
17331733
}
17341734

17351735
@SuppressWarnings("serial")
1736-
private class TestTransactionManager extends AbstractPlatformTransactionManager {
1736+
private final class TestTransactionManager extends AbstractPlatformTransactionManager {
17371737

17381738
@Override
17391739
protected void doBegin(Object transaction, TransactionDefinition definition) throws TransactionException {

spring-rabbit/src/test/java/org/springframework/amqp/rabbit/core/RabbitTemplateTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ protected void doRollback(DefaultTransactionStatus status) throws TransactionExc
742742

743743
}
744744

745-
private class DoNothingMPP implements MessagePostProcessor {
745+
private static final class DoNothingMPP implements MessagePostProcessor {
746746

747747
@Override
748748
public Message postProcessMessage(Message message) throws AmqpException {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2019 the original author or authors.
2+
* Copyright 2016-2024 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.
@@ -127,7 +127,7 @@ private void doTest(Throwable cause) {
127127
new MessageProperties())));
128128
}
129129

130-
private static class Foo {
130+
private static final class Foo {
131131

132132
@SuppressWarnings("unused")
133133
public void foo(String foo) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ private void waitForConsumersToStop(Set<?> consumers) {
882882
}
883883

884884
@SuppressWarnings("serial")
885-
private static class TestTransactionManager extends AbstractPlatformTransactionManager {
885+
private static final class TestTransactionManager extends AbstractPlatformTransactionManager {
886886

887887
@Override
888888
protected void doBegin(Object transaction, TransactionDefinition definition) throws TransactionException {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ public void withHeaders(Foo foo, @Headers Map<String, Object> headers) {
488488

489489
}
490490

491-
private static class Foo {
491+
private static final class Foo {
492492

493493
private String foo;
494494

0 commit comments

Comments
 (0)