Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

Commit 432d8b6

Browse files
committed
Start 2.1.0 version
1 parent a3dd476 commit 432d8b6

File tree

7 files changed

+22
-35
lines changed

7 files changed

+22
-35
lines changed

build.gradle

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ buildscript {
33
maven { url 'http://repo.spring.io/plugins-release' }
44
}
55
dependencies {
6-
classpath 'io.spring.gradle:dependency-management-plugin:1.0.5.RELEASE'
7-
classpath 'io.spring.gradle:spring-io-plugin:0.0.8.RELEASE'
6+
classpath 'io.spring.gradle:dependency-management-plugin:1.0.6.RELEASE'
87
}
98
}
109

@@ -24,20 +23,20 @@ group = 'org.springframework.integration'
2423

2524
repositories {
2625
// maven { url 'http://repo.spring.io/libs-staging-local' }
27-
if (version.endsWith('BUILD-SNAPSHOT') || project.hasProperty('platformVersion')) {
26+
if (version.endsWith('BUILD-SNAPSHOT')) {
2827
maven { url 'https://repo.spring.io/libs-snapshot' }
2928
}
3029
maven { url 'http://repo.spring.io/libs-milestone' }
3130
}
3231

3332
ext {
34-
assertjVersion = '3.10.0'
33+
assertjVersion = '3.11.1'
3534
dynamodbLockClientVersion = '1.0.0'
36-
jacksonVersion = '2.9.6'
37-
servletApiVersion = '3.1.0'
38-
log4jVersion = '2.11.0'
39-
springCloudAwsVersion = '2.0.0.RELEASE'
40-
springIntegrationVersion = '5.0.7.RELEASE'
35+
jacksonVersion = '2.9.7'
36+
servletApiVersion = '4.0.0'
37+
log4jVersion = '2.11.1'
38+
springCloudAwsVersion = '2.1.0.BUILD-SNAPSHOT'
39+
springIntegrationVersion = '5.1.0.RELEASE'
4140

4241
idPrefix = 'aws'
4342

@@ -68,41 +67,28 @@ sourceSets {
6867

6968
apply plugin: 'io.spring.dependency-management'
7069

71-
if (project.hasProperty('platformVersion')) {
72-
apply plugin: 'spring-io'
73-
}
74-
7570
dependencyManagement {
7671
imports {
7772
mavenBom "org.springframework.cloud:spring-cloud-aws-dependencies:$springCloudAwsVersion"
7873
mavenBom "org.springframework.integration:spring-integration-bom:$springIntegrationVersion"
7974
}
80-
81-
if (project.hasProperty('platformVersion')) {
82-
springIoTestRuntime {
83-
imports {
84-
mavenBom "io.spring.platform:platform-bom:$platformVersion"
85-
}
86-
}
87-
}
8875
}
8976

9077
jacoco {
91-
toolVersion = "0.7.9"
78+
toolVersion = "0.8.2"
9279
}
9380

9481
checkstyle {
9582
configFile = file("${rootDir}/src/checkstyle/checkstyle.xml")
96-
toolVersion = "8.11"
83+
toolVersion = "8.14"
9784
}
9885

9986
dependencies {
10087
compile 'org.springframework.integration:spring-integration-core'
88+
compile 'org.springframework.cloud:spring-cloud-aws-core'
10189

10290
compile("com.fasterxml.jackson.core:jackson-databind:$jacksonVersion", optional)
10391

104-
compile 'org.springframework.cloud:spring-cloud-aws-core'
105-
10692
compile('org.springframework.cloud:spring-cloud-aws-messaging', optional)
10793
compile('org.springframework.integration:spring-integration-file', optional)
10894
compile('org.springframework.integration:spring-integration-http', optional)

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=2.0.1.BUILD-SNAPSHOT
1+
version=2.1.0.BUILD-SNAPSHOT

gradle/wrapper/gradle-wrapper.jar

1.72 KB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

src/main/java/org/springframework/integration/aws/inbound/S3StreamingMessageSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public S3StreamingMessageSource(RemoteFileTemplate<S3ObjectSummary> template) {
4646
}
4747

4848
public S3StreamingMessageSource(RemoteFileTemplate<S3ObjectSummary> template,
49-
Comparator<AbstractFileInfo<S3ObjectSummary>> comparator) {
49+
Comparator<S3ObjectSummary> comparator) {
5050

5151
super(template, comparator);
5252

src/main/java/org/springframework/integration/aws/support/AbstractMessageAttributesHeaderMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
import org.springframework.cloud.aws.messaging.core.MessageAttributeDataTypes;
2828
import org.springframework.integration.mapping.HeaderMapper;
29-
import org.springframework.integration.util.PatternMatchUtils;
29+
import org.springframework.integration.support.utils.PatternMatchUtils;
3030
import org.springframework.messaging.MessageHeaders;
3131
import org.springframework.util.Assert;
3232
import org.springframework.util.MimeType;

src/test/java/org/springframework/integration/aws/inbound/S3StreamingChannelAdapterTests.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2017 the original author or authors.
2+
* Copyright 2016-2018 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.
@@ -24,6 +24,7 @@
2424
import java.io.FileInputStream;
2525
import java.io.IOException;
2626
import java.io.InputStream;
27+
import java.nio.charset.Charset;
2728
import java.util.ArrayList;
2829
import java.util.Comparator;
2930
import java.util.Date;
@@ -48,7 +49,6 @@
4849
import org.springframework.integration.channel.QueueChannel;
4950
import org.springframework.integration.config.EnableIntegration;
5051
import org.springframework.integration.file.FileHeaders;
51-
import org.springframework.integration.file.remote.FileInfo;
5252
import org.springframework.integration.metadata.SimpleMetadataStore;
5353
import org.springframework.messaging.Message;
5454
import org.springframework.messaging.PollableChannel;
@@ -114,14 +114,14 @@ public void testS3InboundStreamingChannelAdapter() throws IOException {
114114

115115
InputStream inputStreamA = (InputStream) message.getPayload();
116116
assertThat(inputStreamA).isNotNull();
117-
assertThat(IOUtils.toString(inputStreamA)).isEqualTo("Hello");
117+
assertThat(IOUtils.toString(inputStreamA, Charset.defaultCharset())).isEqualTo("Hello");
118118

119119
message = this.s3FilesChannel.receive(10000);
120120
assertThat(message).isNotNull();
121121
assertThat(message.getPayload()).isInstanceOf(InputStream.class);
122122
assertThat(message.getHeaders().get(FileHeaders.REMOTE_FILE)).isEqualTo("subdir/b.test");
123123
InputStream inputStreamB = (InputStream) message.getPayload();
124-
assertThat(IOUtils.toString(inputStreamB)).isEqualTo("Bye");
124+
assertThat(IOUtils.toString(inputStreamB, Charset.defaultCharset())).isEqualTo("Bye");
125125

126126
assertThat(this.s3FilesChannel.receive(10)).isNull();
127127
}
@@ -161,9 +161,10 @@ public S3StreamingMessageSource s3InboundStreamingMessageSource(AmazonS3 amazonS
161161
S3SessionFactory s3SessionFactory = new S3SessionFactory(amazonS3);
162162
S3RemoteFileTemplate s3FileTemplate = new S3RemoteFileTemplate(s3SessionFactory);
163163
S3StreamingMessageSource s3MessageSource = new S3StreamingMessageSource(s3FileTemplate,
164-
Comparator.comparing(FileInfo::getFilename));
164+
Comparator.comparing(S3ObjectSummary::getKey));
165165
s3MessageSource.setRemoteDirectory("/" + S3_BUCKET + "/subdir");
166-
s3MessageSource.setFilter(new S3PersistentAcceptOnceFileListFilter(new SimpleMetadataStore(), "streaming"));
166+
s3MessageSource.setFilter(new S3PersistentAcceptOnceFileListFilter(new SimpleMetadataStore(), "streaming"
167+
));
167168

168169
return s3MessageSource;
169170
}

0 commit comments

Comments
 (0)