Skip to content

Commit be82e57

Browse files
committed
Upgrade dependencies; fix deprecations
* Prepare for release
1 parent e154067 commit be82e57

File tree

6 files changed

+42
-34
lines changed

6 files changed

+42
-34
lines changed

build.gradle

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
buildscript {
2-
ext.kotlinVersion = '1.4.0'
2+
ext.kotlinVersion = '1.4.10'
33
repositories {
44
maven { url 'https://repo.spring.io/plugins-release' }
55
}
@@ -13,8 +13,8 @@ plugins {
1313
id 'org.sonarqube' version '2.8'
1414
id 'io.spring.nohttp' version '0.0.5.RELEASE' apply false
1515
id 'org.ajoberstar.grgit' version '4.0.2'
16-
id "io.spring.dependency-management" version '1.0.9.RELEASE'
17-
id 'com.jfrog.artifactory' version '4.16.1' apply false
16+
id "io.spring.dependency-management" version '1.0.10.RELEASE'
17+
id 'com.jfrog.artifactory' version '4.17.2' apply false
1818
id 'org.jetbrains.dokka' version '0.10.1'
1919
id 'org.asciidoctor.jvm.pdf' version '3.2.0'
2020
id 'org.asciidoctor.jvm.gems' version '3.2.0'
@@ -48,12 +48,12 @@ ext {
4848
activeMqVersion = '5.16.0'
4949
apacheSshdVersion = '2.5.1'
5050
aspectjVersion = '1.9.6'
51-
assertjVersion = '3.16.1'
51+
assertjVersion = '3.17.2'
5252
assertkVersion = '0.22'
5353
avroVersion = '1.10.0'
5454
awaitilityVersion = '4.0.3'
5555
commonsDbcp2Version = '2.7.0'
56-
commonsIoVersion = '2.7'
56+
commonsIoVersion = '2.8.0'
5757
commonsNetVersion = '3.7'
5858
curatorVersion = '4.3.0'
5959
derbyVersion = '10.14.2.0'
@@ -62,13 +62,12 @@ ext {
6262
groovyVersion = '3.0.5'
6363
hamcrestVersion = '2.2'
6464
hazelcastVersion = '4.0.2'
65-
hibernateVersion = '5.4.20.Final'
65+
hibernateVersion = '5.4.21.Final'
6666
hsqldbVersion = '2.5.1'
6767
h2Version = '1.4.200'
6868
jacksonVersion = '2.11.2'
6969
javaxActivationVersion = '1.2.0'
7070
javaxAnnotationVersion= '1.3.2'
71-
javaxMailVersion = '1.6.2'
7271
jaxbVersion = '2.3.3'
7372
jeroMqVersion = '0.5.2'
7473
jmsApiVersion = '2.0.1'
@@ -78,34 +77,35 @@ ext {
7877
jschVersion = '0.1.55'
7978
jsonpathVersion = '2.4.0'
8079
junit4Version = '4.13'
81-
junitJupiterVersion = '5.7.0-M1'
80+
junitJupiterVersion = '5.7.0'
8281
jythonVersion = '2.7.2'
8382
kryoShadedVersion = '4.0.2'
84-
lettuceVersion = '6.0.0.RC1'
83+
lettuceVersion = '6.0.0.RC2'
8584
log4jVersion = '2.13.3'
86-
micrometerVersion = '1.5.3'
87-
mockitoVersion = '3.4.6'
85+
mailVersion = '1.6.5'
86+
micrometerVersion = '1.5.4'
87+
mockitoVersion = '3.5.10'
8888
mongoDriverVersion = '4.1.0'
8989
mysqlVersion = '8.0.21'
9090
pahoMqttClientVersion = '1.2.4'
9191
postgresVersion = '42.2.14'
9292
r2dbch2Version='0.8.4.RELEASE'
9393
reactorVersion = '2020.0.0-RC1'
9494
resilience4jVersion = '1.5.0'
95-
romeToolsVersion = '1.12.2'
96-
rsocketVersion = '1.1.0-SNAPSHOT'
95+
romeToolsVersion = '1.15.0'
96+
rsocketVersion = '1.1.0-M2'
9797
saajVersion = '1.5.2'
9898
servletApiVersion = '4.0.1'
9999
smackVersion = '4.3.4'
100100
soapVersion = '1.4.0'
101-
springAmqpVersion = project.hasProperty('springAmqpVersion') ? project.springAmqpVersion : '2.3.0-SNAPSHOT'
102-
springDataVersion = project.hasProperty('springDataVersion') ? project.springDataVersion : '2020.0.0-SNAPSHOT'
101+
springAmqpVersion = project.hasProperty('springAmqpVersion') ? project.springAmqpVersion : '2.3.0-M3'
102+
springDataVersion = project.hasProperty('springDataVersion') ? project.springDataVersion : '2020.0.0-RC1'
103103
springKafkaVersion = '2.6.0'
104104
springRetryVersion = '1.3.0'
105105
springSecurityVersion = project.hasProperty('springSecurityVersion') ? project.springSecurityVersion : '5.4.0'
106-
springVersion = project.hasProperty('springVersion') ? project.springVersion : '5.3.0-SNAPSHOT'
107-
springWsVersion = '3.0.9.RELEASE'
108-
tomcatVersion = "9.0.37"
106+
springVersion = project.hasProperty('springVersion') ? project.springVersion : '5.3.0-RC1'
107+
springWsVersion = '3.0.10.RELEASE'
108+
tomcatVersion = "9.0.38"
109109
xstreamVersion = '1.4.13'
110110

111111
javaProjects = subprojects - project(':spring-integration-bom')
@@ -214,7 +214,7 @@ configure(javaProjects) { subproject ->
214214
}
215215

216216
jacoco {
217-
toolVersion = '0.8.5'
217+
toolVersion = '0.8.6'
218218
}
219219

220220
// dependencies that are common across all java projects
@@ -325,7 +325,7 @@ configure(javaProjects) { subproject ->
325325

326326
checkstyle {
327327
configDirectory.set(rootProject.file("src/checkstyle"))
328-
toolVersion = project.hasProperty('checkstyleVersion') ? project.checkstyleVersion : '8.35'
328+
toolVersion = project.hasProperty('checkstyleVersion') ? project.checkstyleVersion : '8.36.1'
329329
}
330330

331331
jar {
@@ -618,9 +618,9 @@ project('spring-integration-mail') {
618618
api project(':spring-integration-core')
619619
api 'org.springframework:spring-context-support'
620620

621-
providedImplementation "javax.mail:javax.mail-api:$javaxMailVersion"
622-
providedImplementation "com.sun.mail:imap:$javaxMailVersion"
623-
providedImplementation "com.sun.mail:javax.mail:$javaxMailVersion"
621+
providedImplementation "jakarta.mail:jakarta.mail-api:$mailVersion"
622+
providedImplementation "com.sun.mail:imap:$mailVersion"
623+
providedImplementation "com.sun.mail:jakarta.mail:$mailVersion"
624624

625625
optionalApi "javax.activation:javax.activation-api:$javaxActivationVersion"
626626
}
@@ -828,10 +828,10 @@ project('spring-integration-ws') {
828828
testImplementation "org.igniterealtime.smack:smack-tcp:$smackVersion"
829829
testImplementation "org.igniterealtime.smack:smack-java7:$smackVersion"
830830
testImplementation "org.igniterealtime.smack:smack-extensions:$smackVersion"
831-
testImplementation "javax.mail:javax.mail-api:$javaxMailVersion"
831+
testImplementation "jakarta.mail:jakarta.mail-api:$mailVersion"
832832

833-
testRuntimeOnly "com.sun.mail:mailapi:$javaxMailVersion"
834-
testRuntimeOnly "com.sun.mail:javax.mail:$javaxMailVersion"
833+
testRuntimeOnly "com.sun.mail:mailapi:$mailVersion"
834+
testRuntimeOnly "com.sun.mail:jakarta.mail:$mailVersion"
835835
}
836836
}
837837

spring-integration-core/src/test/java/org/springframework/integration/dsl/routers/RouterTests.java

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,18 @@
1616

1717
package org.springframework.integration.dsl.routers;
1818

19+
import static org.assertj.core.api.Assertions.as;
1920
import static org.assertj.core.api.Assertions.assertThat;
2021
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
2122

2223
import java.util.Arrays;
2324
import java.util.List;
25+
import java.util.Map;
2426
import java.util.concurrent.atomic.AtomicReference;
2527
import java.util.function.Function;
2628
import java.util.stream.Collectors;
2729

30+
import org.assertj.core.api.InstanceOfAssertFactories;
2831
import org.junit.jupiter.api.Test;
2932

3033
import org.springframework.beans.factory.ListableBeanFactory;
@@ -609,10 +612,14 @@ public void testNestedScatterGatherSequenceTest() {
609612
MessageHeaders headers1 = wiretapMessage1.getHeaders();
610613
Message<?> wiretapMessage2 = scatterGatherWireTapChannel.receive(10000);
611614
assertThat(wiretapMessage2).isNotNull()
612-
.extracting(Message::getHeaders)
613-
.isEqualToComparingOnlyGivenFields(headers1, IntegrationMessageHeaderAccessor.CORRELATION_ID,
614-
"gatherResultChannel", IntegrationMessageHeaderAccessor.SEQUENCE_NUMBER,
615-
IntegrationMessageHeaderAccessor.SEQUENCE_SIZE);
615+
.extracting(Message::getHeaders, as(InstanceOfAssertFactories.MAP))
616+
.containsAllEntriesOf(
617+
headers1.entrySet()
618+
.stream()
619+
.filter((entry) ->
620+
!MessageHeaders.ID.equals(entry.getKey())
621+
&& !MessageHeaders.TIMESTAMP.equals(entry.getKey()))
622+
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue)));
616623
Message<?> receive = replyChannel.receive(10000);
617624

618625
assertThat(receive).isNotNull();
@@ -743,7 +750,7 @@ public IntegrationFlow routeMethodInvocationFlow3() {
743750
public IntegrationFlow routeMultiMethodInvocationFlow() {
744751
return IntegrationFlows.from("routerMultiInput")
745752
.route(String.class, p -> p.equals("foo") || p.equals("bar")
746-
? new String[] { "foo", "bar" }
753+
? new String[]{ "foo", "bar" }
747754
: null,
748755
s -> s.suffix("-channel"))
749756
.get();

spring-integration-file/src/main/java/org/springframework/integration/file/remote/synchronizer/AbstractInboundFileSynchronizer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ protected boolean copyFileToLocalDirectory(String remoteDirectoryPath, F remoteF
494494
throw new IllegalStateException("Could not sent last modified on file: " + localFile);
495495
}
496496
String hostPort = session.getHostPort();
497-
int colonIndex = hostPort.lastIndexOf(":");
497+
int colonIndex = hostPort.lastIndexOf(':');
498498
String host = hostPort.substring(0, colonIndex);
499499
String port = hostPort.substring(colonIndex + 1);
500500
try {

spring-integration-rsocket/src/test/java/org/springframework/integration/rsocket/inbound/RSocketInboundGatewayIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public ServerRSocketConnector serverRSocketConnector(ServerRSocketMessageHandler
203203

204204
@EventListener
205205
public void onApplicationEvent(RSocketConnectedEvent event) {
206-
this.clientRequester.emitValue(event.getRequester());
206+
this.clientRequester.tryEmitValue(event.getRequester());
207207
}
208208

209209
}

spring-integration-rsocket/src/test/java/org/springframework/integration/rsocket/outbound/RSocketOutboundGatewayIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ Mono<Void> handleExceptionWithVoidReturnValue(IllegalStateException ex) {
596596

597597
@ConnectMapping("clientConnect")
598598
void clientConnect(RSocketRequester requester) {
599-
this.clientRequester.emitValue(requester);
599+
this.clientRequester.tryEmitValue(requester);
600600
}
601601

602602
}

spring-integration-sftp/src/test/java/org/springframework/integration/sftp/dsl/SftpTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public class SftpTests extends SftpTestSupport {
6969
private IntegrationFlowContext flowContext;
7070

7171
@Test
72+
@SuppressWarnings("unchecked")
7273
public void testSftpInboundFlow() {
7374
QueueChannel out = new QueueChannel();
7475
IntegrationFlow flow = IntegrationFlows

0 commit comments

Comments
 (0)