Skip to content

Commit f842488

Browse files
committed
Upgrade deps and infra; prepare for release
* Upgrade to Gradle `8.14.2` * Upgrade to Checkstyle `10.25.0` * Upgrade Gradle plugins, and project deps to their latest point versions * Fix Checkstyle violations in the classes
1 parent 4006023 commit f842488

File tree

7 files changed

+64
-45
lines changed

7 files changed

+64
-45
lines changed

build.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77
id 'eclipse'
88
id 'idea'
99
id 'checkstyle'
10-
id 'io.spring.dependency-management' version '1.1.6'
10+
id 'io.spring.dependency-management' version '1.1.7'
1111
}
1212

1313
description = 'Spring Integration AWS Support'
@@ -25,17 +25,17 @@ repositories {
2525
}
2626

2727
ext {
28-
awaitilityVersion = '4.2.2'
28+
awaitilityVersion = '4.3.0'
2929
awsSdkVersion = '2.20.162'
3030
jacksonVersion = '2.15.4'
31-
junitVersion = '5.11.0'
32-
log4jVersion = '2.24.0'
31+
junitVersion = '5.11.4'
32+
log4jVersion = '2.24.3'
3333
servletApiVersion = '6.0.0'
3434
springCloudAwsVersion = '3.0.5'
3535
springIntegrationVersion = '6.0.9'
3636
kinesisClientVersion = '2.5.8'
37-
kinesisProducerVersion = '0.15.11'
38-
testcontainersVersion = '1.20.1'
37+
kinesisProducerVersion = '0.15.12'
38+
testcontainersVersion = '1.21.3'
3939

4040
idPrefix = 'aws'
4141

@@ -92,7 +92,7 @@ dependencyManagement {
9292

9393
checkstyle {
9494
configDirectory.set(rootProject.file('src/checkstyle'))
95-
toolVersion = '10.18.1'
95+
toolVersion = '10.25.0'
9696
}
9797

9898
dependencies {

gradle/wrapper/gradle-wrapper.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionSha256Sum=8d97a97984f6cbd2b85fe4c60a743440a347544bf18818048e611f5288d46c94
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip
3+
distributionSha256Sum=7197a12f450794931532469d4ff21a59ea2c1cd59a3ec3f89c035c3c420a6999
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.2-bin.zip
55
networkTimeout=10000
66
validateDistributionUrl=true
77
zipStoreBase=GRADLE_USER_HOME

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pluginManagement {
66
}
77

88
plugins {
9-
id 'io.spring.develocity.conventions' version '0.0.21'
9+
id 'io.spring.develocity.conventions' version '0.0.23'
1010
}
1111

1212
rootProject.name = 'spring-integration-aws'

src/checkstyle/checkstyle.xml

Lines changed: 49 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<property name="headerFile" value="${config_loc}/checkstyle-header.txt"/>
1414
<property name="fileExtensions" value="java"/>
1515
</module>
16+
1617
<module name="NewlineAtEndOfFile"/>
1718

1819
<!-- TreeWalker Checks -->
@@ -23,11 +24,11 @@
2324
<property name="elementStyle" value="compact"/>
2425
</module>
2526
<module name="MissingOverride"/>
26-
<module name="PackageAnnotation"/>
27-
<module name="AnnotationLocation">
28-
<property name="allowSamelineSingleParameterlessAnnotation"
29-
value="false"/>
30-
</module>
27+
<!-- <module name="PackageAnnotation" /> -->
28+
<!-- <module name="AnnotationLocation"> -->
29+
<!-- <property name="allowSamelineSingleParameterlessAnnotation" -->
30+
<!-- value="false" /> -->
31+
<!-- </module> -->
3132

3233
<!-- Block Checks -->
3334
<module name="EmptyBlock">
@@ -52,7 +53,7 @@
5253
<module name="CovariantEquals"/>
5354
<module name="EmptyStatement"/>
5455
<module name="EqualsHashCode"/>
55-
<!-- <module name="InnerAssignment"/>-->
56+
<!-- <module name="InnerAssignment" /> -->
5657
<module name="SimplifyBooleanExpression"/>
5758
<module name="SimplifyBooleanReturn"/>
5859
<module name="StringLiteralEquality"/>
@@ -77,14 +78,24 @@
7778
<module name="AvoidStaticImport">
7879
<property name="excludes"
7980
value="org.assertj.core.api.Assertions.*,
81+
org.xmlunit.assertj3.XmlAssert.*,
8082
org.assertj.core.api.Assumptions.*,
83+
org.assertj.core.api.InstanceOfAssertFactories.*,
8184
org.awaitility.Awaitility.*,
8285
org.mockito.Mockito.*,
8386
org.mockito.BDDMockito.*,
8487
org.mockito.AdditionalAnswers.*,
8588
org.mockito.ArgumentMatchers.*,
89+
org.mockito.AdditionalMatchers.*,
90+
org.springframework.kafka.test.assertj.KafkaConditions.*,
8691
org.springframework.integration.test.mock.MockIntegration.*,
87-
org.springframework.integration.test.util.TestUtils.*"/>
92+
org.springframework.integration.test.util.TestUtils.*,
93+
org.springframework.test.web.client.match.MockRestRequestMatchers.*,
94+
org.springframework.test.web.client.response.MockRestResponseCreators.*,
95+
org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*,
96+
org.springframework.test.web.servlet.result.MockMvcResultMatchers.*,
97+
org.springframework.security.test.web.servlet.request.SecurityMockMvcRequestPostProcessors.*,
98+
org.springframework.security.test.web.servlet.setup.SecurityMockMvcConfigurers.*"/>
8899
</module>
89100
<module name="IllegalImport"/>
90101
<module name="RedundantImport"/>
@@ -102,15 +113,14 @@
102113
<!-- Javadoc Comments -->
103114
<module name="JavadocType">
104115
<property name="scope" value="package"/>
105-
<property name="authorFormat" value=".+\s.+"/>
106116
</module>
107-
<module name="JavadocMethod"/>
108-
<module name="JavadocVariable">
117+
<!--<module name="JavadocVariable">
109118
<property name="scope" value="public"/>
110-
</module>
111-
<module name="JavadocStyle">
112-
<property name="checkEmptyJavadoc" value="true"/>
113-
</module>
119+
<property name="ignoreNamePattern" value="[A-Z_0-9]*"/>
120+
</module>-->
121+
<!--<module name="JavadocStyle">
122+
<property name="checkEmptyJavadoc" value="false"/>
123+
</module>-->
114124
<module name="NonEmptyAtclauseDescription"/>
115125
<module name="JavadocTagContinuationIndentation">
116126
<property name="offset" value="0"/>
@@ -134,6 +144,7 @@
134144

135145
<!-- Modifiers -->
136146
<module name="RedundantModifier"/>
147+
<module name="ModifierOrderCheck"/>
137148

138149
<!-- Regexp -->
139150
<module name="RegexpSinglelineJava">
@@ -142,30 +153,31 @@
142153
value="Line has leading space characters; indentation should be performed with tabs only."/>
143154
<property name="ignoreComments" value="true"/>
144155
</module>
145-
<module name="RegexpSinglelineJava">
146-
<property name="maximum" value="0"/>
147-
<property name="format" value="org\.mockito\..*Mockito\.(when|doThrow|doAnswer)"/>
148-
<property name="message"
149-
value="Please use BDDMockito instead of Mockito.(when|doThrow|doAnswer)."/>
150-
<property name="ignoreComments" value="true"/>
151-
</module>
152-
<module name="RegexpSinglelineJava">
153-
<property name="maximum" value="0"/>
154-
<property name="format" value="org\.junit\.Assert\.assert"/>
155-
<property name="message"
156-
value="Please use AssertJ imports."/>
157-
<property name="ignoreComments" value="true"/>
158-
</module>
156+
<!-- <module name="RegexpSinglelineJava"> -->
157+
<!-- <property name="maximum" value="0"/> -->
158+
<!-- <property name="format" value="org\.mockito\.Mockito\.(when|doThrow|doAnswer)" /> -->
159+
<!-- <property name="message" -->
160+
<!-- value="Please use BDDMockto imports." /> -->
161+
<!-- <property name="ignoreComments" value="true" /> -->
162+
<!-- </module> -->
163+
<!-- <module name="RegexpSinglelineJava"> -->
164+
<!-- <property name="maximum" value="0"/> -->
165+
<!-- <property name="format" value="org\.junit\.Assert\.assert" /> -->
166+
<!-- <property name="message" -->
167+
<!-- value="Please use AssertJ imports." /> -->
168+
<!-- <property name="ignoreComments" value="true" /> -->
169+
<!-- </module> -->
159170
<module name="Regexp">
160-
<property name="format" value="[ \t]+$"/>
171+
<property name="format" value="System.(out|err).print"/>
161172
<property name="illegalPattern" value="true"/>
162-
<property name="message" value="Trailing whitespace"/>
173+
<property name="message" value="System.out or .err"/>
163174
</module>
164175
<module name="Regexp">
165-
<property name="format" value="System.(out|err).print"/>
176+
<property name="format" value="[ \t]+$"/>
166177
<property name="illegalPattern" value="true"/>
167-
<property name="message" value="System.out or .err"/>
178+
<property name="message" value="Trailing whitespace"/>
168179
</module>
180+
169181
<!-- Whitespace -->
170182
<module name="GenericWhitespace"/>
171183
<module name="MethodParamPad"/>
@@ -177,6 +189,10 @@
177189
<module name="TypecastParenPad"/>
178190
<module name="WhitespaceAfter"/>
179191
<module name="WhitespaceAround"/>
180-
192+
<module name="EmptyLineSeparator">
193+
<property name="tokens"
194+
value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, STATIC_INIT, INSTANCE_INIT, METHOD_DEF, CTOR_DEF, VARIABLE_DEF, RECORD_DEF, COMPACT_CTOR_DEF "/>
195+
<property name="allowMultipleEmptyLines" value="false"/>
196+
</module>
181197
</module>
182198
</module>

src/main/java/org/springframework/integration/aws/inbound/kinesis/KinesisMessageDrivenChannelAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1644,7 +1644,7 @@ public boolean isLongLived() {
16441644

16451645
}
16461646

1647-
private final static class LockCompletableFuture extends CompletableFuture<Boolean> {
1647+
private static final class LockCompletableFuture extends CompletableFuture<Boolean> {
16481648

16491649
private final String lockKey;
16501650

src/main/java/org/springframework/integration/aws/lock/DynamoDbLockRegistry.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ public DynamoDbLockRegistry(DynamoDbLockRepository dynamoDbLockRepository) {
5959
this.dynamoDbLockRepository = dynamoDbLockRepository;
6060
}
6161

62-
6362
/**
6463
* Specify a {@link Duration} to sleep between lock record insert/update attempts.
6564
* Defaults to 100 milliseconds.

src/test/java/org/springframework/integration/aws/kinesis/KclMessageDrivenChannelAdapterTests.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@
7676
public class KclMessageDrivenChannelAdapterTests implements LocalstackContainerTest {
7777

7878
private static final String TEST_STREAM = "TestStreamKcl";
79+
7980
public static final String LEASE_TABLE_NAME = "test_table";
81+
8082
public static final String TEST_DATA = "test data";
8183

8284
private static KinesisAsyncClient AMAZON_KINESIS;
@@ -236,6 +238,7 @@ public KclMessageDrivenChannelAdapter kclMessageDrivenChannelAdapter(PollableCha
236238
public PollableChannel kinesisReceiveChannel() {
237239
return new QueueChannel();
238240
}
241+
239242
}
240243

241244
private static CompletableFuture<WaiterResponse<DescribeStreamResponse>> initialiseStream(String streamName) {
@@ -277,4 +280,5 @@ private static CompletableFuture<PutItemResponse> initialiseLeaseTableFor(String
277280
))
278281
.build()));
279282
}
283+
280284
}

0 commit comments

Comments
 (0)