Skip to content

Commit 5c73843

Browse files
committed
Upgrade dependencies
* Fix compatibility with the latest dependency upgrades
1 parent b58b0e5 commit 5c73843

File tree

5 files changed

+48
-42
lines changed

5 files changed

+48
-42
lines changed

build.gradle

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
buildscript {
2-
ext.kotlinVersion = '1.4.20'
2+
ext.kotlinVersion = '1.4.21'
33
repositories {
44
mavenCentral()
55
maven { url 'https://plugins.gradle.org/m2' }
@@ -15,8 +15,8 @@ plugins {
1515
id 'org.sonarqube' version '2.8'
1616
id 'io.spring.nohttp' version '0.0.5.RELEASE' apply false
1717
id 'org.ajoberstar.grgit' version '4.1.0'
18-
id "io.spring.dependency-management" version '1.0.10.RELEASE'
19-
id 'com.jfrog.artifactory' version '4.18.2' apply false
18+
id "io.spring.dependency-management" version '1.0.11.RELEASE'
19+
id 'com.jfrog.artifactory' version '4.18.3' apply false
2020
id 'org.jetbrains.dokka' version '0.10.1'
2121
id 'org.asciidoctor.jvm.pdf' version '3.3.0'
2222
id 'org.asciidoctor.jvm.gems' version '3.3.0'
@@ -42,17 +42,17 @@ ext {
4242
linkScmUrl = 'https://github.com/spring-projects/spring-integration'
4343
linkScmConnection = 'scm:git:git://github.com/spring-projects/spring-integration.git'
4444
linkScmDevConnection = 'scm:git:ssh://[email protected]:spring-projects/spring-integration.git'
45-
docResourcesVersion = '0.2.4'
45+
docResourcesVersion = '0.2.5'
4646

4747
modifiedFiles =
4848
files(grgit.status().unstaged.modified).filter{ f -> f.name.endsWith('.java') || f.name.endsWith('.kt') }
4949

5050
activeMqVersion = '5.16.0'
51-
apacheSshdVersion = '2.5.1'
51+
apacheSshdVersion = '2.6.0'
5252
aspectjVersion = '1.9.6'
5353
assertjVersion = '3.18.1'
5454
assertkVersion = '0.23'
55-
avroVersion = '1.10.0'
55+
avroVersion = '1.10.1'
5656
awaitilityVersion = '4.0.3'
5757
commonsDbcp2Version = '2.8.0'
5858
commonsIoVersion = '2.8.0'
@@ -61,54 +61,54 @@ ext {
6161
derbyVersion = '10.14.2.0'
6262
ftpServerVersion = '1.1.1'
6363
googleJsr305Version = '3.0.2'
64-
groovyVersion = '3.0.6'
64+
groovyVersion = '3.0.7'
6565
hamcrestVersion = '2.2'
66-
hazelcastVersion = '4.1'
67-
hibernateVersion = '5.4.25.Final'
66+
hazelcastVersion = '4.1.1'
67+
hibernateVersion = '5.4.27.Final'
6868
hsqldbVersion = '2.5.1'
6969
h2Version = '1.4.200'
70-
jacksonVersion = '2.12.0'
70+
jacksonVersion = '2.12.1'
7171
javaxActivationVersion = '1.2.0'
7272
jaxbVersion = '2.3.3'
7373
jeroMqVersion = '0.5.2'
7474
jmsApiVersion = '2.0.1'
7575
jpa21ApiVersion = '1.0.2.Final'
7676
jpaApiVersion = '2.7.7'
77-
jrubyVersion = '9.2.13.0'
77+
jrubyVersion = '9.2.14.0'
7878
jschVersion = '0.1.55'
7979
jsonpathVersion = '2.4.0'
8080
junit4Version = '4.13.1'
8181
junitJupiterVersion = '5.7.0'
8282
jythonVersion = '2.7.2'
8383
kryoShadedVersion = '4.0.2'
84-
lettuceVersion = '6.0.1.RELEASE'
84+
lettuceVersion = '6.0.2.RELEASE'
8585
log4jVersion = '2.14.0'
8686
mailVersion = '1.6.5'
87-
micrometerVersion = '1.6.1'
88-
mockitoVersion = '3.6.28'
87+
micrometerVersion = '1.6.3'
88+
mockitoVersion = '3.7.0'
8989
mongoDriverVersion = '4.2.0-beta1'
9090
mysqlVersion = '8.0.22'
9191
pahoMqttClientVersion = '1.2.5'
9292
postgresVersion = '42.2.18'
9393
r2dbch2Version='0.8.4.RELEASE'
94-
reactorVersion = '2020.0.1'
94+
reactorVersion = '2020.0.3'
9595
resilience4jVersion = '1.6.1'
9696
romeToolsVersion = '1.15.0'
9797
rsocketVersion = '1.1.0'
9898
saajVersion = '1.5.2'
9999
servletApiVersion = '4.0.1'
100100
smackVersion = '4.3.5'
101101
soapVersion = '1.4.0'
102-
springAmqpVersion = project.hasProperty('springAmqpVersion') ? project.springAmqpVersion : '2.3.4'
102+
springAmqpVersion = project.hasProperty('springAmqpVersion') ? project.springAmqpVersion : '2.3.5-SNAPSHOT'
103103
springDataVersion = project.hasProperty('springDataVersion') ? project.springDataVersion : '2021.0.0-SNAPSHOT'
104104
springKafkaVersion = '2.7.0-SNAPSHOT'
105-
springRetryVersion = '1.3.0'
105+
springRetryVersion = '1.3.1'
106106
springSecurityVersion = project.hasProperty('springSecurityVersion') ? project.springSecurityVersion : '5.5.0-SNAPSHOT'
107-
springVersion = project.hasProperty('springVersion') ? project.springVersion : '5.3.1'
107+
springVersion = project.hasProperty('springVersion') ? project.springVersion : '5.3.4-SNAPSHOT'
108108
springWsVersion = '3.1.0-SNAPSHOT'
109-
tomcatVersion = "9.0.40"
110-
xmlUnitVersion = '2.8.1'
111-
xstreamVersion = '1.4.14'
109+
tomcatVersion = '9.0.41'
110+
xmlUnitVersion = '2.8.2'
111+
xstreamVersion = '1.4.15'
112112

113113
javaProjects = subprojects - project(':spring-integration-bom')
114114
}
@@ -239,7 +239,10 @@ configure(javaProjects) { subproject ->
239239
exclude group: 'org.hamcrest'
240240
}
241241
testImplementation 'org.junit.jupiter:junit-jupiter-api'
242-
testImplementation "com.willowtreeapps.assertk:assertk-jvm:$assertkVersion"
242+
testImplementation ("com.willowtreeapps.assertk:assertk-jvm:$assertkVersion") {
243+
exclude group: 'org.jetbrains.kotlin'
244+
}
245+
testImplementation 'org.jetbrains.kotlin:kotlin-reflect'
243246
testImplementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
244247
testImplementation 'io.projectreactor:reactor-test'
245248
testImplementation "com.jayway.jsonpath:json-path:$jsonpathVersion"
@@ -328,7 +331,7 @@ configure(javaProjects) { subproject ->
328331

329332
checkstyle {
330333
configDirectory.set(rootProject.file("src/checkstyle"))
331-
toolVersion = project.hasProperty('checkstyleVersion') ? project.checkstyleVersion : '8.38'
334+
toolVersion = project.hasProperty('checkstyleVersion') ? project.checkstyleVersion : '8.39'
332335
}
333336

334337
jar {
@@ -436,7 +439,9 @@ project('spring-integration-core') {
436439

437440
testImplementation ("org.aspectj:aspectjweaver:$aspectjVersion")
438441
testImplementation ('com.fasterxml.jackson.datatype:jackson-datatype-jsr310')
439-
testRuntime 'com.fasterxml.jackson.module:jackson-module-kotlin'
442+
testRuntime ('com.fasterxml.jackson.module:jackson-module-kotlin') {
443+
exclude group: 'org.jetbrains.kotlin'
444+
}
440445
testImplementation "org.hamcrest:hamcrest-core:$hamcrestVersion"
441446
}
442447
}
@@ -605,7 +610,6 @@ project('spring-integration-kafka') {
605610
}
606611

607612
testImplementation "org.springframework.kafka:spring-kafka-test:$springKafkaVersion"
608-
testImplementation "com.willowtreeapps.assertk:assertk-jvm:$assertkVersion"
609613
testImplementation "org.hamcrest:hamcrest-core:$hamcrestVersion"
610614

611615
testRuntimeOnly 'com.fasterxml.jackson.core:jackson-core'
@@ -829,7 +833,6 @@ project('spring-integration-ws') {
829833
testImplementation ('org.springframework:spring-jms')
830834
testImplementation "javax.jms:javax.jms-api:$jmsApiVersion"
831835
testImplementation "org.igniterealtime.smack:smack-tcp:$smackVersion"
832-
testImplementation "org.igniterealtime.smack:smack-java7:$smackVersion"
833836
testImplementation "org.igniterealtime.smack:smack-extensions:$smackVersion"
834837
testImplementation "jakarta.mail:jakarta.mail-api:$mailVersion"
835838

spring-integration-sftp/src/main/java/org/springframework/integration/sftp/server/ApacheMinaSftpEventListener.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019 the original author or authors.
2+
* Copyright 2019-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.
@@ -16,15 +16,14 @@
1616

1717
package org.springframework.integration.sftp.server;
1818

19-
import java.io.IOException;
2019
import java.nio.file.CopyOption;
2120
import java.nio.file.Path;
2221
import java.util.Collection;
2322
import java.util.Map;
2423

2524
import org.apache.sshd.server.session.ServerSession;
26-
import org.apache.sshd.server.subsystem.sftp.FileHandle;
27-
import org.apache.sshd.server.subsystem.sftp.SftpEventListener;
25+
import org.apache.sshd.sftp.server.FileHandle;
26+
import org.apache.sshd.sftp.server.SftpEventListener;
2827

2928
import org.springframework.beans.factory.BeanNameAware;
3029
import org.springframework.beans.factory.InitializingBean;
@@ -38,10 +37,13 @@
3837
* which are subclasses of {@link ApacheMinaSftpEvent}.
3938
*
4039
* @author Gary Russell
40+
* @author Artem Bilan
41+
*
4142
* @since 5.2
4243
*
4344
*/
44-
public class ApacheMinaSftpEventListener implements SftpEventListener, ApplicationEventPublisherAware, BeanNameAware, InitializingBean {
45+
public class ApacheMinaSftpEventListener
46+
implements SftpEventListener, ApplicationEventPublisherAware, BeanNameAware, InitializingBean {
4547

4648
private ApplicationEventPublisher applicationEventPublisher;
4749

@@ -76,7 +78,7 @@ public void initialized(ServerSession session, int version) {
7678
}
7779

7880
@Override
79-
public void destroying(ServerSession session) throws IOException {
81+
public void destroying(ServerSession session) {
8082
this.applicationEventPublisher.publishEvent(new SessionClosedEvent(session));
8183
}
8284

spring-integration-sftp/src/test/java/org/springframework/integration/sftp/SftpTestSupport.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2020 the original author or authors.
2+
* Copyright 2016-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.
@@ -22,7 +22,7 @@
2222
import org.apache.sshd.common.file.virtualfs.VirtualFileSystemFactory;
2323
import org.apache.sshd.server.SshServer;
2424
import org.apache.sshd.server.keyprovider.SimpleGeneratorHostKeyProvider;
25-
import org.apache.sshd.server.subsystem.sftp.SftpSubsystemFactory;
25+
import org.apache.sshd.sftp.server.SftpSubsystemFactory;
2626
import org.junit.jupiter.api.AfterAll;
2727
import org.junit.jupiter.api.BeforeAll;
2828

@@ -47,7 +47,8 @@ public class SftpTestSupport extends RemoteFileTestSupport {
4747

4848
private static SshServer server;
4949

50-
private static ApacheMinaSftpEventListener eventListener = new ApacheMinaSftpEventListener();
50+
private static final ApacheMinaSftpEventListener EVENT_LISTENER
51+
= new ApacheMinaSftpEventListener();
5152

5253
@Override
5354
public String getTargetLocalDirectoryName() {
@@ -66,10 +67,10 @@ public static void createServer() throws Exception {
6667
server.setPort(0);
6768
server.setKeyPairProvider(new SimpleGeneratorHostKeyProvider(new File("hostkey.ser").toPath()));
6869
SftpSubsystemFactory sftpFactory = new SftpSubsystemFactory();
69-
eventListener.setApplicationEventPublisher((ev) -> {
70+
EVENT_LISTENER.setApplicationEventPublisher((ev) -> {
7071
// no-op
7172
});
72-
sftpFactory.addSftpEventListener(eventListener);
73+
sftpFactory.addSftpEventListener(EVENT_LISTENER);
7374
server.setSubsystemFactories(Collections.singletonList(sftpFactory));
7475
server.setFileSystemFactory(new VirtualFileSystemFactory(getRemoteTempFolder().toPath()));
7576
server.start();
@@ -87,7 +88,7 @@ public static SessionFactory<LsEntry> sessionFactory() {
8788
}
8889

8990
public static ApacheMinaSftpEventListener eventListener() {
90-
return eventListener;
91+
return EVENT_LISTENER;
9192
}
9293

9394
@AfterAll

spring-integration-sftp/src/test/java/org/springframework/integration/sftp/session/SftpServerTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2020 the original author or authors.
2+
* Copyright 2014-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.
@@ -35,7 +35,7 @@
3535
import org.apache.sshd.common.file.virtualfs.VirtualFileSystemFactory;
3636
import org.apache.sshd.server.SshServer;
3737
import org.apache.sshd.server.keyprovider.SimpleGeneratorHostKeyProvider;
38-
import org.apache.sshd.server.subsystem.sftp.SftpSubsystemFactory;
38+
import org.apache.sshd.sftp.server.SftpSubsystemFactory;
3939
import org.junit.jupiter.api.Test;
4040

4141
import org.springframework.core.io.ByteArrayResource;

spring-integration-sftp/src/test/java/org/springframework/integration/sftp/session/SftpSessionFactoryTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2020 the original author or authors.
2+
* Copyright 2014-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.
@@ -30,7 +30,7 @@
3030

3131
import org.apache.sshd.server.SshServer;
3232
import org.apache.sshd.server.keyprovider.SimpleGeneratorHostKeyProvider;
33-
import org.apache.sshd.server.subsystem.sftp.SftpSubsystemFactory;
33+
import org.apache.sshd.sftp.server.SftpSubsystemFactory;
3434
import org.junit.jupiter.api.Test;
3535

3636
import org.springframework.core.io.ClassPathResource;

0 commit comments

Comments
 (0)