Skip to content

Commit 2884bf0

Browse files
committed
Various upgrades for version 6.1
* Upgrade to Gradle `8.0.1` * Upgrade to Kotlin `1.8` * Some other libs updates * Resolve some compatible TODOs
1 parent 7d02658 commit 2884bf0

File tree

11 files changed

+139
-155
lines changed

11 files changed

+139
-155
lines changed

build.gradle

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
buildscript {
2-
ext.kotlinVersion = '1.7.21'
2+
ext.kotlinVersion = '1.8.10'
33
ext.isCI = System.getenv('GITHUB_ACTION') || System.getenv('bamboo_buildKey')
44
repositories {
55
gradlePluginPortal()
@@ -49,13 +49,13 @@ ext {
4949
files(grgit.status().unstaged.modified).filter { f -> f.name.endsWith('.java') || f.name.endsWith('.kt') }
5050

5151
apacheSshdVersion = '2.9.2'
52-
artemisVersion = '2.27.1'
52+
artemisVersion = '2.28.0'
5353
aspectjVersion = '1.9.19'
5454
assertjVersion = '3.24.2'
5555
assertkVersion = '0.25'
5656
avroVersion = '1.11.1'
5757
awaitilityVersion = '4.2.0'
58-
camelVersion = '3.20.1'
58+
camelVersion = '3.20.2'
5959
commonsDbcp2Version = '2.9.0'
6060
commonsIoVersion = '2.11.0'
6161
commonsNetVersion = '3.9.0'
@@ -77,7 +77,7 @@ ext {
7777
jeroMqVersion = '0.5.3'
7878
jmsApiVersion = '3.1.0'
7979
jpaApiVersion = '3.1.0'
80-
jrubyVersion = '9.3.10.0'
80+
jrubyVersion = '9.4.1.0'
8181
jsonpathVersion = '2.7.0'
8282
junit4Version = '4.13.2'
8383
junitJupiterVersion = '5.9.2'
@@ -87,27 +87,26 @@ ext {
8787
lettuceVersion = '6.2.3.RELEASE'
8888
log4jVersion = '2.19.0'
8989
mailVersion = '1.0.0'
90-
micrometerPropagationVersion = '1.1.0-M2'
9190
micrometerTracingVersion = '1.1.0-M1'
9291
micrometerVersion = '1.11.0-M1'
9392
mockitoVersion = '5.1.1'
94-
mongoDriverVersion = '4.8.2'
93+
mongoDriverVersion = '4.9.0'
9594
mysqlVersion = '8.0.32'
9695
pahoMqttClientVersion = '1.2.5'
97-
postgresVersion = '42.5.2'
96+
postgresVersion = '42.5.4'
9897
r2dbch2Version = '1.0.0.RELEASE'
9998
reactorVersion = '2022.0.3'
10099
resilience4jVersion = '2.0.2'
101100
romeToolsVersion = '1.18.0'
102101
rsocketVersion = '1.1.3'
103102
servletApiVersion = '6.0.0'
104103
smackVersion = '4.4.6'
105-
springAmqpVersion = '3.0.2-SNAPSHOT'
106-
springDataVersion = '2023.0.0-SNAPSHOT'
107-
springGraphqlVersion = '1.1.2-SNAPSHOT'
108-
springKafkaVersion = '3.0.3-SNAPSHOT'
104+
springAmqpVersion = '3.0.2'
105+
springDataVersion = '2023.0.0-M2'
106+
springGraphqlVersion = '1.1.2'
107+
springKafkaVersion = '3.0.3'
109108
springRetryVersion = '2.0.0'
110-
springSecurityVersion = '6.1.0-SNAPSHOT'
109+
springSecurityVersion = '6.1.0-M1'
111110
springVersion = '6.0.5'
112111
springWsVersion = '4.0.1'
113112
testcontainersVersion = '1.17.6'
@@ -230,6 +229,7 @@ configure(javaProjects) { subproject ->
230229
}
231230
compileTestKotlin {
232231
kotlinOptions {
232+
languageVersion = '1.8'
233233
freeCompilerArgs = ['-Xjsr305=strict', '-opt-in=kotlin.RequiresOptIn']
234234
}
235235
}
@@ -328,9 +328,9 @@ configure(javaProjects) { subproject ->
328328

329329
jacocoTestReport {
330330
reports {
331-
xml.enabled true
332-
csv.enabled false
333-
html.enabled false
331+
xml.required = true
332+
csv.required = false
333+
html.required = false
334334
xml.destination file("${buildDir}/reports/jacoco/test/jacocoTestReport.xml")
335335
}
336336
}

gradle/wrapper/gradle-wrapper.jar

34 Bytes
Binary file not shown.
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-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
3+
distributionSha256Sum=1b6b558be93f29438d3df94b7dfee02e794b94d9aca4611a92cdb79b6b88e909
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.1-bin.zip
45
networkTimeout=10000
56
zipStoreBase=GRADLE_USER_HOME
67
zipStorePath=wrapper/dists
7-
distributionSha256Sum=7ba68c54029790ab444b39d7e293d3236b2632631fb5f2e012bb28b4ff669e4b

gradlew

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,15 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144144
case $MAX_FD in #(
145145
max*)
146146
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
147-
# shellcheck disable=SC3045
147+
# shellcheck disable=SC3045
148148
MAX_FD=$( ulimit -H -n ) ||
149149
warn "Could not query maximum file descriptor limit"
150150
esac
151151
case $MAX_FD in #(
152152
'' | soft) :;; #(
153153
*)
154154
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155-
# shellcheck disable=SC3045
155+
# shellcheck disable=SC3045
156156
ulimit -n "$MAX_FD" ||
157157
warn "Could not set maximum file descriptor limit to $MAX_FD"
158158
esac

spring-integration-amqp/src/main/java/org/springframework/integration/amqp/inbound/AmqpInboundChannelAdapter.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2023 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.
@@ -123,11 +123,6 @@ public enum BatchMode {
123123

124124
private BatchMode batchMode = BatchMode.MESSAGES;
125125

126-
// TODO Remove in 6.0
127-
public AmqpInboundChannelAdapter(AbstractMessageListenerContainer listenerContainer) {
128-
this((MessageListenerContainer) listenerContainer);
129-
}
130-
131126
/**
132127
* Construct an instance using the provided container.
133128
* @param listenerContainer the container.

spring-integration-amqp/src/main/java/org/springframework/integration/amqp/inbound/AmqpInboundGateway.java

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2023 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.
@@ -101,19 +101,6 @@ public AmqpInboundGateway(AbstractMessageListenerContainer listenerContainer) {
101101
this(listenerContainer, new RabbitTemplate(listenerContainer.getConnectionFactory()), false);
102102
}
103103

104-
// TODO Remove in 6.0
105-
106-
/**
107-
* Construct {@link AmqpInboundGateway} based on the provided {@link AbstractMessageListenerContainer}
108-
* to receive request messages and {@link AmqpTemplate} to send replies.
109-
* @param listenerContainer the {@link MessageListenerContainer} to receive AMQP messages.
110-
* @param amqpTemplate the {@link AmqpTemplate} to send reply messages.
111-
* @since 4.2
112-
*/
113-
public AmqpInboundGateway(AbstractMessageListenerContainer listenerContainer, AmqpTemplate amqpTemplate) {
114-
this((MessageListenerContainer) listenerContainer, amqpTemplate);
115-
}
116-
117104
/**
118105
* Construct {@link AmqpInboundGateway} based on the provided {@link MessageListenerContainer}
119106
* to receive request messages and {@link AmqpTemplate} to send replies.

spring-integration-core/src/main/kotlin/org/springframework/integration/dsl/KotlinRouterSpec.kt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020-2022 the original author or authors.
2+
* Copyright 2020-2023 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.
@@ -47,11 +47,6 @@ class KotlinRouterSpec<K, R : AbstractMappingMessageRouter>(override val delegat
4747
this.delegate.suffix(suffix)
4848
}
4949

50-
@Deprecated(message = "Since 6.0", replaceWith = ReplaceWith("channelKeyFallback(false)"))
51-
fun noChannelKeyFallback() {
52-
channelKeyFallback(false)
53-
}
54-
5550
fun channelKeyFallback(channelKeyFallback: Boolean) {
5651
this.delegate.channelKeyFallback(channelKeyFallback)
5752
}

0 commit comments

Comments
 (0)