Skip to content

Commit 6861dc7

Browse files
committed
Upgrade dependencies to the latest major/minor
* Remove redundant now `com.github.spotbugs` Gradle plugin * Fix Debezium tests for latest Debezium state
1 parent 6891c61 commit 6861dc7

File tree

4 files changed

+16
-30
lines changed

4 files changed

+16
-30
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ updates:
1919
- patch
2020
patterns:
2121
- org.gradle.*
22-
- com.github.spotbugs
2322
- io.spring.*
2423
- org.antora
2524
- com.google.protobuf

build.gradle

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ plugins {
2121
id 'org.jetbrains.dokka' version '1.9.20'
2222
id 'org.antora' version '1.0.0'
2323
id 'io.spring.antora.generate-antora-yml' version '0.0.1'
24-
id 'com.github.spotbugs' version '6.1.13'
2524
id 'com.google.protobuf' version '0.9.5' apply false
2625
id 'io.freefair.aggregate-javadoc' version '8.13.1'
2726
id 'io.spring.nullability' version '0.0.2' apply false
@@ -47,18 +46,18 @@ ext {
4746
linkScmDevConnection = 'scm:git:ssh://git@github.com:spring-projects/spring-integration.git'
4847

4948
apacheSshdVersion = '2.15.0'
50-
artemisVersion = '2.41.0'
49+
artemisVersion = '2.42.0'
5150
aspectjVersion = '1.9.24'
5251
assertjVersion = '3.27.3'
5352
assertkVersion = '0.28.1'
5453
avroVersion = '1.12.0'
5554
awaitilityVersion = '4.3.0'
56-
camelVersion = '4.12.0'
55+
camelVersion = '4.13.0'
5756
commonsDbcp2Version = '2.13.0'
58-
commonsIoVersion = '2.19.0'
57+
commonsIoVersion = '2.20.0'
5958
commonsNetVersion = '3.11.1'
6059
curatorVersion = '5.8.0'
61-
debeziumVersion = '3.1.3.Final'
60+
debeziumVersion = '3.2.0.Final'
6261
derbyVersion = '10.16.1.1'
6362
ftpServerVersion = '1.2.1'
6463
graalvmVersion = '24.2.2'
@@ -79,11 +78,11 @@ ext {
7978
jrubyVersion = '10.0.1.0'
8079
jsonpathVersion = '2.9.0'
8180
junit4Version = '4.13.2'
82-
junitJupiterVersion = '5.12.2'
81+
junitJupiterVersion = '5.13.4'
8382
kotlinCoroutinesVersion = '1.10.2'
8483
kryoVersion = '5.6.2'
8584
lettuceVersion = '6.7.1.RELEASE'
86-
log4jVersion = '2.24.3'
85+
log4jVersion = '2.25.1'
8786
mailVersion = '2.0.3'
8887
micrometerTracingVersion = '1.6.0-M1'
8988
micrometerVersion = '1.16.0-M1'
@@ -101,14 +100,14 @@ ext {
101100
rsocketVersion = '1.1.5'
102101
servletApiVersion = '6.1.0'
103102
smackVersion = '4.4.8'
104-
springAmqpVersion = '4.0.0-SNAPSHOT'
103+
springAmqpVersion = '4.0.0-M3'
105104
springDataVersion = '2025.1.0-M4'
106-
springGraphqlVersion = '1.4.1'
107-
springKafkaVersion = '4.0.0-SNAPSHOT'
105+
springGraphqlVersion = '2.0.0-M1'
106+
springKafkaVersion = '4.0.0-M3'
108107
springRetryVersion = '2.0.12'
109-
springSecurityVersion = '7.0.0-SNAPSHOT'
108+
springSecurityVersion = '7.0.0-M1'
110109
springVersion = '7.0.0-M7'
111-
springWsVersion = '5.0.0-SNAPSHOT'
110+
springWsVersion = '5.0.0-M1'
112111
testcontainersVersion = '1.21.3'
113112
tomcatVersion = '11.0.9'
114113
xmlUnitVersion = '2.10.3'
@@ -288,10 +287,6 @@ configure(javaProjects) { subproject ->
288287
api project(':spring-integration-core')
289288
}
290289

291-
def spotbugsAnnotations = "com.github.spotbugs:spotbugs-annotations:${spotbugs.toolVersion.get()}"
292-
compileOnly spotbugsAnnotations
293-
testCompileOnly spotbugsAnnotations
294-
295290
testImplementation("org.awaitility:awaitility:$awaitilityVersion") {
296291
exclude group: 'org.hamcrest'
297292
}
@@ -345,7 +340,7 @@ configure(javaProjects) { subproject ->
345340

346341
checkstyle {
347342
configDirectory.set(rootProject.file('src/checkstyle'))
348-
toolVersion = project.hasProperty('checkstyleVersion') ? project.checkstyleVersion : '10.25.0'
343+
toolVersion = project.hasProperty('checkstyleVersion') ? project.checkstyleVersion : '10.26.1'
349344
}
350345

351346
jar {

spring-integration-debezium/src/test/java/org/springframework/integration/debezium/dsl/DebeziumDslTests.java

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
import org.springframework.integration.dsl.IntegrationFlow;
4040
import org.springframework.test.annotation.DirtiesContext;
4141
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;
42-
import org.springframework.util.CollectionUtils;
4342

4443
import static org.assertj.core.api.Assertions.assertThat;
4544

@@ -64,12 +63,8 @@ void dslFromBuilder() throws InterruptedException {
6463
assertThat(config.payloads).hasSize(EXPECTED_DB_TX_COUNT);
6564
assertThat(config.headerKeys).hasSize(EXPECTED_DB_TX_COUNT);
6665

67-
config.headerKeys.forEach(keys -> {
68-
assertThat(keys).contains("debezium_destination", "id", "contentType", "debezium_key", "timestamp");
69-
if (keys.size() > 5) {
70-
assertThat(keys).contains("__name", "__db", "__table");
71-
}
72-
});
66+
config.headerKeys.forEach(keys ->
67+
assertThat(keys).contains("debezium_destination", "id", "contentType", "debezium_key", "timestamp"));
7368
}
7469

7570
@Test
@@ -84,10 +79,7 @@ void dslBatch() throws InterruptedException {
8479
.isLessThan(EXPECTED_DB_TX_COUNT);
8580

8681
config.batchHeaderKeys.stream()
87-
.filter(headerNames -> !CollectionUtils.isEmpty(headerNames))
88-
.forEach(headerNames -> {
89-
assertThat(headerNames).contains("__name", "__db", "__table");
90-
});
82+
.forEach(headerNames -> assertThat(headerNames).isNotEmpty());
9183
}
9284

9385
@Configuration

spring-integration-debezium/src/test/java/org/springframework/integration/debezium/it/DebeziumBatchTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ void batchMode() {
7979
assertThat(changeEvent.destination()).startsWith("my-topic");
8080
if (i > 15) {
8181
assertThat(changeEvent.destination()).contains(".inventory");
82-
assertThat(headerKeys).hasSize(4).contains("__name", "__db", "__op", "__table");
82+
assertThat(headerKeys).hasSize(7).contains("__name", "__db", "__op", "__table");
8383
}
8484
}
8585
}

0 commit comments

Comments
 (0)