Commit Graph

12318 Commits

Author SHA1 Message Date
Anayonkar Shivalkar
b07d04f9e5 GH-10083: Migrate spring-integration-camel to JSpecify Nullable
Related to: https://github.com/spring-projects/spring-integration/issues/10083

This change is applicable only to `spring-integration-camel`.

*Replaced `org.springframework.lang.Nullable` with `org.jspecify.annotations.Nullable`.
* Handled changes in `package-info.java`
* Handled nullable related issues in `CamelMessageHandler`.

Fixed issues in `CamelMessageHandler` as per review comments (suppressed warnings for `NullAway.Init` so that `Objects.requireNonNull` is not needed).

Signed-off-by: Anayonkar Shivalkar <anayonkar.shivalkar@gmail.com>
2025-06-09 15:15:21 -04:00
Artem Bilan
ed544de72a Fix deprecation warnings in AMPQ module
* The `Confirm` in Spring AMQP is a `record` now, so not `isAck()` but just `ack()`
* The `MessageBatch` in Spring AMQP is a `record` now, so not `getMessage()`, but just `message()`
* Fix new deprecation warning for the `SingleRequestResponseScenarioTests`
2025-06-09 15:11:55 -04:00
Anayonkar Shivalkar
f4e7763cc7 GH-10083: Migrate AMQP module to Jspecify
Related to: https://github.com/spring-projects/spring-integration/issues/10083

* Replaced `org.springframework.lang.Nullable` with `org.jspecify.annotations.Nullable`

Signed-off-by: Anayonkar Shivalkar <anayonkar.shivalkar@gmail.com>
2025-06-09 12:44:37 -04:00
Jooyoung Pyoung
1a3df027e2 GH-10069: Mitigate warning: [this-escape] in the project
Fixes: https://github.com/spring-projects/spring-integration/issues/10069

Suppress warnings introduced with Java 24 build toolchain:

spring-integration-core:
- Add `@SuppressWarnings("this-escape")` for 23 constructor calls
- Make `PublisherAnnotationAdvisor.pointcut` `transient` (serial warning)

spring-integration-amqp:
- Add `@SuppressWarnings("this-escape")` for 7 constructor calls

spring-integration-cassandra:
- Add `@SuppressWarnings("this-escape")` for 1 constructor call

spring-integration-event:
- Add `@SuppressWarnings("this-escape")` for 1 constructor call

spring-integration-file:
- Add `@SuppressWarnings("this-escape")` for 4 constructor calls
- Fix 2 deprecation warnings (`Locale` constructor, `Runtime.exec`)

spring-integration-ftp:
- Add `@SuppressWarnings("this-escape")` for 4 constructor calls

spring-integration-graphql:
- Add `@SuppressWarnings("this-escape")` for 1 constructor call

spring-integration-jms:
- Add `@SuppressWarnings("this-escape")` for 3 constructor calls

spring-integration-jmx:
- Add `@SuppressWarnings("this-escape")` for 1 constructor call

spring-integration-kafka:
- Add `@SuppressWarnings("this-escape")` for 4 constructor calls

spring-integration-mail:
- Add `@SuppressWarnings("this-escape")` for 5 constructor calls

spring-integration-mqtt:
- Add `@SuppressWarnings("this-escape")` for 2 constructor calls

spring-integration-redis:
- Add `@SuppressWarnings("this-escape")` for 1 constructor call

spring-integration-rsocket:
- Add `@SuppressWarnings("this-escape")` for 1 constructor call

spring-integration-sftp:
- Add `@SuppressWarnings("this-escape")` for 4 constructor calls
- Fix 1 serial warnings

spring-integration-smb:
- Add `@SuppressWarnings("this-escape")` for 3 constructor calls

spring-integration-webflux:
- Add `@SuppressWarnings("this-escape")` for 1 constructor call

spring-integration-websocket:
- Add `@SuppressWarnings("this-escape")` for 1 constructor call

spring-integration-ws:
- Add `@SuppressWarnings("this-escape")` for 6 constructor calls

spring-integration-xml:
- Add `@SuppressWarnings("this-escape")` for 1 constructor call
- Fix 1 deprecation warnings (`Locale` constructor)

spring-integration-xmpp:
- Add `@SuppressWarnings("this-escape")` for 1 constructor call

spring-integration-zeromq:
- Add `@SuppressWarnings("this-escape")` for 2 constructor calls

Signed-off-by: Jooyoung Pyoung <pyoungjy@gmail.com>
2025-06-09 11:53:17 -04:00
Jiandong
d229cb4930 GH-9996: Migrating tests to Junit Jupiter and Deprecate Junit4 utilities
Fixes: https://github.com/spring-projects/spring-integration/issues/9996

Signed-off-by: Jiandong Ma <jiandong.ma.cn@gmail.com>
2025-06-09 11:46:42 -04:00
Anayonkar Shivalkar
bf9d3910cb Issue 10070: Fix JavaDoc warnings
Fixed incorrect arguments and class names in JavaDoc comments

Signed-off-by: Anayonkar Shivalkar <anayonkar.shivalkar@gmail.com>
2025-06-08 22:01:29 +05:30
dependabot[bot]
ca822a2659 Bump org.mongodb:mongodb-driver-bom from 5.5.0 to 5.5.1 (#10084)
Bumps [org.mongodb:mongodb-driver-bom](https://github.com/mongodb/mongo-java-driver) from 5.5.0 to 5.5.1.
- [Release notes](https://github.com/mongodb/mongo-java-driver/releases)
- [Commits](https://github.com/mongodb/mongo-java-driver/compare/r5.5.0...r5.5.1)

---
updated-dependencies:
- dependency-name: org.mongodb:mongodb-driver-bom
  dependency-version: 5.5.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-08 00:28:22 +00:00
Artem Bilan
7221d23447 Remove extra blank line in the end of MySqlTxTimeoutMessageStoreTests
Signed-off-by: Artem Bilan <artem.bilan@broadcom.com>
2025-06-06 19:41:04 -04:00
Artem Bilan
2ff14c70c8 Disable sporadic MySqlTxTimeoutMessageStoreTests.testInt2993IdCacheConcurrency 2025-06-06 17:58:49 -04:00
Artem Bilan
3e046089dc Upgrade to the latest dependencies
* Use latest SNAPSHOT variants for Spring projects
* Fix compilation errors after such an upgrade
2025-06-06 17:00:57 -04:00
Artem Bilan
40df0b9e0e Fix nullability in the webflux.outbound package 2025-06-06 15:48:10 -04:00
Artem Bilan
6d2380df8e GH-10082: Add io.spring.nullability Gradle plugin
Fixes: https://github.com/spring-projects/spring-integration/issues/10082

* Experiment with `NullAway` in some HTTP module packages
2025-06-06 15:23:38 -04:00
Artem Bilan
b8116d59a9 Clean up and improve Java DSL for JDBC
Follow up for: https://github.com/spring-projects/spring-integration/pull/10081

* Rename `StoredProcExecutorConfigurer` to `StoredProcExecutorSpec`
* Add `Jdbc.storedProcExecutorSpec()` factory
* Improve logic of `StoredProcExecutor`-based Java DSL classes to handle an external `StoredProcExecutor` as well
* Add `package-info.java` into the `jdbc/dsl` package
* Add `/jdbc/dsl.adoc` and respective `What's New` entry
2025-06-06 14:11:34 -04:00
Jiandong
cd15675734 GH-8467: Add Java DSL support for JDBC module
Fixes: https://github.com/spring-projects/spring-integration/issues/8467

Signed-off-by: Jiandong Ma <jiandong.ma.cn@gmail.com>
2025-06-06 12:30:41 -04:00
Artem Bilan
66d76a3aa3 Upgrade to Spring Framework 7.0
* Upgrade to Spring Data `2025.1.0`
* Upgrade to Spring Security `7.0`
* Fix all the compilation errors, including for Kotlin (not clear how they passed before upgrade to SF `7.0`)
2025-06-04 16:36:44 -04:00
Glenn Renfro
66de5a2c93 Disable multicast tests when buiding on MacOS (#10080)
Multicast tests fail when running on MacOS. So these tests will be disabled when building on macOS based machines.
I did not include the Oracle tests because M4 processors do support the oracle testcontainer based tests.
2025-06-03 13:38:23 -04:00
Artem Bilan
8d7b5f636e Increase some timeouts in the ReactiveStreamsTests 2025-06-03 13:10:33 -04:00
Artem Bilan
0a690504ee Add 1 sec delay to the ReactiveStreamsTests.reactiveFlow poller
Looks like there is some race condition in starting endpoints in the flow,
and poller was able to emit message before downstream channel is subscribed
2025-06-03 13:02:05 -04:00
dependabot[bot]
cf9ae314d1 Bump io.spring.develocity.conventions (#10072)
Bumps the development-dependencies group with 1 update: [io.spring.develocity.conventions](https://github.com/spring-io/develocity-conventions).


Updates `io.spring.develocity.conventions` from 0.0.22 to 0.0.23
- [Release notes](https://github.com/spring-io/develocity-conventions/releases)
- [Commits](https://github.com/spring-io/develocity-conventions/compare/v0.0.22...v0.0.23)

---
updated-dependencies:
- dependency-name: io.spring.develocity.conventions
  dependency-version: 0.0.23
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: development-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-03 15:31:57 +00:00
dependabot[bot]
39e4a6fee1 Bump debeziumVersion from 3.1.1.Final to 3.1.2.Final (#10073)
Bumps `debeziumVersion` from 3.1.1.Final to 3.1.2.Final.

Updates `io.debezium:debezium-embedded` from 3.1.1.Final to 3.1.2.Final

Updates `io.debezium:debezium-connector-mysql` from 3.1.1.Final to 3.1.2.Final

---
updated-dependencies:
- dependency-name: io.debezium:debezium-embedded
  dependency-version: 3.1.2.Final
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: io.debezium:debezium-connector-mysql
  dependency-version: 3.1.2.Final
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-03 15:25:47 +00:00
Artem Bilan
ceef3a34b9 Update Dependabot config for actual dependencies
* Add Dependabot config for `6.5.x` branch
2025-06-03 11:21:36 -04:00
Artem Bilan
d9259f5167 Upgrade to Java 24; Kotlin 2.1
* Rearrange `JavaCompile` and `KotlinCompilationTask` Gradle options
* Comment out `Werror` for `Javadoc` tasks to avoid build failure
* Disable `UdpChannelAdapterTests.testMulticastReceiver()` since it fails somehow on Java `23` & `24`
* Disable `MySqlTxTimeoutMessageStoreTests.testInt3181ConcurrentPolling()` since it is not stable
2025-06-02 15:05:17 -04:00
dependabot[bot]
c53379e23a Bump protobufVersion from 4.31.0 to 4.31.1 (#10066)
Bumps `protobufVersion` from 4.31.0 to 4.31.1.

Updates `com.google.protobuf:protobuf-java` from 4.31.0 to 4.31.1
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf/blob/main/protobuf_release.bzl)
- [Commits](https://github.com/protocolbuffers/protobuf/compare/v4.31.0...v4.31.1)

Updates `com.google.protobuf:protobuf-java-util` from 4.31.0 to 4.31.1

Updates `com.google.protobuf:protoc` from 4.31.0 to 4.31.1
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf/blob/main/protobuf_release.bzl)
- [Commits](https://github.com/protocolbuffers/protobuf/compare/v4.31.0...v4.31.1)

---
updated-dependencies:
- dependency-name: com.google.protobuf:protobuf-java
  dependency-version: 4.31.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.google.protobuf:protobuf-java-util
  dependency-version: 4.31.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.google.protobuf:protoc
  dependency-version: 4.31.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-02 15:16:56 +00:00
dependabot[bot]
cd717284ba Bump the development-dependencies group with 4 updates (#10064)
Bumps the development-dependencies group with 4 updates: [org.testcontainers:testcontainers-bom](https://github.com/testcontainers/testcontainers-java), [org.postgresql:postgresql](https://github.com/pgjdbc/pgjdbc), [org.hibernate.orm:hibernate-core](https://github.com/hibernate/hibernate-orm) and com.github.spotbugs.


Updates `org.testcontainers:testcontainers-bom` from 1.21.0 to 1.21.1
- [Release notes](https://github.com/testcontainers/testcontainers-java/releases)
- [Changelog](https://github.com/testcontainers/testcontainers-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testcontainers/testcontainers-java/compare/1.21.0...1.21.1)

Updates `org.postgresql:postgresql` from 42.7.5 to 42.7.6
- [Release notes](https://github.com/pgjdbc/pgjdbc/releases)
- [Changelog](https://github.com/pgjdbc/pgjdbc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pgjdbc/pgjdbc/compare/REL42.7.5...REL42.7.6)

Updates `org.hibernate.orm:hibernate-core` from 6.6.15.Final to 6.6.17.Final
- [Release notes](https://github.com/hibernate/hibernate-orm/releases)
- [Changelog](https://github.com/hibernate/hibernate-orm/blob/6.6.17/changelog.txt)
- [Commits](https://github.com/hibernate/hibernate-orm/compare/6.6.15...6.6.17)

Updates `com.github.spotbugs` from 6.1.12 to 6.1.13

---
updated-dependencies:
- dependency-name: org.testcontainers:testcontainers-bom
  dependency-version: 1.21.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: development-dependencies
- dependency-name: org.postgresql:postgresql
  dependency-version: 42.7.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: development-dependencies
- dependency-name: org.hibernate.orm:hibernate-core
  dependency-version: 6.6.17.Final
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: development-dependencies
- dependency-name: com.github.spotbugs
  dependency-version: 6.1.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: development-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-01 00:46:53 +00:00
dependabot[bot]
04a2664fa2 Bump org.apache.groovy:groovy-bom from 4.0.26 to 4.0.27 (#10065)
Bumps [org.apache.groovy:groovy-bom](https://github.com/apache/groovy) from 4.0.26 to 4.0.27.
- [Commits](https://github.com/apache/groovy/commits)

---
updated-dependencies:
- dependency-name: org.apache.groovy:groovy-bom
  dependency-version: 4.0.27
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-01 00:38:03 +00:00
Glenn Renfro
6ef9672a1e Fix function misspelling in gateway documentation
* Tweaked the 6.4-6.5 documentation.
2025-05-30 17:26:35 -04:00
Artem Bilan
235228596b Start version 7.0
* Upgrade to Gradle `8.14.1`
* Rearrange docs for `7.0` version
2025-05-30 15:59:39 -04:00
Jiandong
01db420bae GH-10045: Enable JDBC test cases with TestContainers approach
Fixes: https://github.com/spring-projects/spring-integration/issues/10045

Signed-off-by: Jiandong Ma <jiandong.ma.cn@gmail.com>
2025-05-30 12:01:48 -04:00
Artem Bilan
8ff3fbd918 Fix threading for FlowServiceTests.testGatewayExplicitReplyChannel
The `enrichHeaders()` operator is put already after an async `gateway()` in the `testGateway` flow definition.
This means that the action of the `enrichHeaders()` could be performed on the returning thread from gateway, or main.

* Move `enrichHeaders()` down to the `subFlow()` bean definition when all the operators are executed as part of
the gateway request from the `testGateway` flow definition.
2025-05-27 12:39:54 -04:00
dependabot[bot]
42b281b5a9 Bump the development-dependencies group with 2 updates (#10056)
Bumps the development-dependencies group with 2 updates: [org.xmlunit:xmlunit-assertj3](https://github.com/xmlunit/xmlunit) and com.github.spotbugs.


Updates `org.xmlunit:xmlunit-assertj3` from 2.10.0 to 2.10.2
- [Release notes](https://github.com/xmlunit/xmlunit/releases)
- [Changelog](https://github.com/xmlunit/xmlunit/blob/main/RELEASE_NOTES.md)
- [Commits](https://github.com/xmlunit/xmlunit/compare/v2.10.0...v2.10.2)

Updates `com.github.spotbugs` from 6.1.11 to 6.1.12

---
updated-dependencies:
- dependency-name: org.xmlunit:xmlunit-assertj3
  dependency-version: 2.10.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: development-dependencies
- dependency-name: com.github.spotbugs
  dependency-version: 6.1.12
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: development-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-24 21:30:52 -04:00
Spring Builds
a8376b2bee [artifactory-release] Next development version 2025-05-20 19:07:16 +00:00
Spring Builds
57110e69a9 [artifactory-release] Release version 6.5.0 2025-05-20 19:07:15 +00:00
Artem Bilan
0a9f226295 Upgrade dependencies; prepare for release 2025-05-20 13:12:58 -04:00
Artem Bilan
bd7f0db3c7 Migrate Hazelcast module from JUnit 4 2025-05-20 12:21:16 -04:00
dependabot[bot]
8f1ed20bdc Bump org.springframework.kafka:spring-kafka-bom from 3.3.5 to 3.3.6 (#10052)
Bumps [org.springframework.kafka:spring-kafka-bom](https://github.com/spring-projects/spring-kafka) from 3.3.5 to 3.3.6.
- [Release notes](https://github.com/spring-projects/spring-kafka/releases)
- [Commits](https://github.com/spring-projects/spring-kafka/compare/v3.3.5...v3.3.6)

---
updated-dependencies:
- dependency-name: org.springframework.kafka:spring-kafka-bom
  dependency-version: 3.3.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-20 16:13:20 +00:00
Artem Bilan
da1ec071c5 GH-10046: Propagate error strategy in the JmsEndpoint
Fixes: #10046
Issue link: https://github.com/spring-projects/spring-integration/issues/10046

The `JmsMessageDrivenEndpoint` does not propagate an `ErrorMessageStrategy` down to the `ChannelPublishingJmsMessageListener.GatewayDelegate`

* Expose `JmsMessageDrivenEndpoint.setErrorMessageStrategy()` and call respective `this.listener.setErrorMessageStrategy()`

**Auto-cherry-pick to `6.4.x` & `6.3.x`**
2025-05-20 11:20:39 -04:00
Jiandong
5bdf35a7d9 Migrate few modules to Junit Jupiter
including: `spring-integration-amqp`, `spring-integration-file`, 'spring-integration-groovy'

Signed-off-by: Jiandong Ma <jiandong.ma.cn@gmail.com>
2025-05-20 10:40:20 -04:00
Jiandong
0a40073305 Fix FileTailingMessageProducerTests.testOS for MacOS
Signed-off-by: Jiandong Ma <jiandong.ma.cn@gmail.com>
2025-05-19 11:28:53 -04:00
dependabot[bot]
301b6227e3 Bump io.projectreactor:reactor-bom from 2024.0.5 to 2024.0.6 (#10041)
Bumps [io.projectreactor:reactor-bom](https://github.com/reactor/reactor) from 2024.0.5 to 2024.0.6.
- [Release notes](https://github.com/reactor/reactor/releases)
- [Commits](https://github.com/reactor/reactor/compare/2024.0.5...2024.0.6)

---
updated-dependencies:
- dependency-name: io.projectreactor:reactor-bom
  dependency-version: 2024.0.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-18 02:33:37 +00:00
dependabot[bot]
968a8f931a Bump org.springframework.retry:spring-retry from 2.0.11 to 2.0.12 (#10042)
Bumps [org.springframework.retry:spring-retry](https://github.com/spring-projects/spring-retry) from 2.0.11 to 2.0.12.
- [Release notes](https://github.com/spring-projects/spring-retry/releases)
- [Commits](https://github.com/spring-projects/spring-retry/compare/v2.0.11...v2.0.12)

---
updated-dependencies:
- dependency-name: org.springframework.retry:spring-retry
  dependency-version: 2.0.12
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-18 01:29:53 +00:00
dependabot[bot]
2d9808153a Bump org.springframework:spring-framework-bom from 6.2.6 to 6.2.7 (#10043)
Bumps [org.springframework:spring-framework-bom](https://github.com/spring-projects/spring-framework) from 6.2.6 to 6.2.7.
- [Release notes](https://github.com/spring-projects/spring-framework/releases)
- [Commits](https://github.com/spring-projects/spring-framework/compare/v6.2.6...v6.2.7)

---
updated-dependencies:
- dependency-name: org.springframework:spring-framework-bom
  dependency-version: 6.2.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-18 01:29:35 +00:00
dependabot[bot]
946a5f6547 Bump the development-dependencies group with 2 updates (#10037)
Bumps the development-dependencies group with 2 updates: [org.hibernate.orm:hibernate-core](https://github.com/hibernate/hibernate-orm) and org.apache.tomcat.embed:tomcat-embed-websocket.


Updates `org.hibernate.orm:hibernate-core` from 6.6.13.Final to 6.6.15.Final
- [Release notes](https://github.com/hibernate/hibernate-orm/releases)
- [Changelog](https://github.com/hibernate/hibernate-orm/blob/6.6.15/changelog.txt)
- [Commits](https://github.com/hibernate/hibernate-orm/compare/6.6.13...6.6.15)

Updates `org.apache.tomcat.embed:tomcat-embed-websocket` from 11.0.6 to 11.0.7

---
updated-dependencies:
- dependency-name: org.hibernate.orm:hibernate-core
  dependency-version: 6.6.15.Final
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: development-dependencies
- dependency-name: org.apache.tomcat.embed:tomcat-embed-websocket
  dependency-version: 11.0.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: development-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-18 01:01:29 +00:00
Jooyoung Pyoung
debd4d45c2 GH-9988: Add FileExistsMode expression support
Fixes: #9988
Issue link: https://github.com/spring-projects/spring-integration/issues/9988

This change allows dynamic determination of `FileExistsMode` using SpEL expressions,
making the component more flexible when handling file existence conflicts.

* Add `fileExistsModeExpression` field and setter methods
* Use `resolveFileExistsMode()` in put and get operations
* Add changes to the docs
* Ignore `temporaryFileName` when `FileExistsMode.APPEND`

Improve runtime behavior by ignoring temporary filename settings when file exists mode is `APPEND`. 
Now, in `FileExistsMode.APPEND` mode, content is always appended directly to the original file regardless of `useTemporaryFileName` setting.

In `RemoteFileTemplate`:
- Remove exception validation when `APPEND` mode is used with temporary filenames
- Modify logic to skip applying `temporaryFileSuffix` in `APPEND` mode

In `AbstractRemoteFileOutboundGateway`:
- Remove logic that disabled temporary filenames when setting `APPEND` mode

* Apply review feedback on `FileExistsMode` expression

- Optimize `EvaluationContext` usage by creating it once in `doInit()`
- Enhance expression evaluation to support String representation of `FileExistsMode`
- Optimize temporary filename handling logic in `RemoteFileTemplate`
- Add warning message for incompatible `APPEND` mode with temporary filenames
- Rename method to `setFileExistsModeExpressionString` for consistency
- Update Java DSL support in `RemoteFileOutboundGatewaySpec`
- Update reference documentation and release notes

* Apply additional review feedback on `FileExistsMode` expression

- Add `Function` variant to `RemoteFileOutboundGatewaySpec`
- Update documentations to use one-sentence-per-line style
- Improve code flow in `resolveFileExistsMode()` method

* Fix additional review feedback on `FileExistsMode` expression

- Use `Object` instead of `String` in `fileExistsModeFunction`
- Fix return method call in `fileExistsModeFunction` (`remoteDirectoryExpression` -> `fileExistsModeExpression`)
- Fix `standardEvaluationContext` initialization in `doInit()`
- Ensure proper `EvaluationContext` usage in other methods

Signed-off-by: Jooyoung Pyoung <pyoungjy@gmail.com>
2025-05-15 10:47:07 -04:00
Artem Bilan
9bdbb6ed1c Upgrade to Jackson 2.19.0 2025-05-14 09:08:55 -04:00
Artem Bilan
cf6f2d6fc2 GH-10018: Fix bugs from the previous commit
Related to: https://github.com/spring-projects/spring-integration/issues/10018
2025-05-12 16:49:13 -04:00
Artem Bilan
bd4e041185 GH-10018: Implement async for Java DSL gateway()
Fixes: https://github.com/spring-projects/spring-integration/issues/10018

The `GatewayEndpointSpec` configuration of the `gateway()` operator support already an `async(true)` option.
However, it is silently ignored internally since no real async contract provided for the gateway proxy.

* Introduce the `AsyncRequestReplyExchanger` interface to use instead of `RequestReplyExchanger`,
when  `gateway()` operator is opted-in for the `async(true)`
* Use this new `AsyncRequestReplyExchanger` in the `GatewayMessageHandler` when `async(true)`
* Also, expose a `GatewayEndpointSpec.asyncExecutor(Executor)` option to support async behavior similar to the `@MessagingGateway`
2025-05-12 16:19:23 -04:00
dependabot[bot]
53cccd0b25 Bump com.fasterxml.jackson:jackson-bom from 2.18.3 to 2.18.4 (#10012)
Bumps [com.fasterxml.jackson:jackson-bom](https://github.com/FasterXML/jackson-bom) from 2.18.3 to 2.18.4.
- [Commits](https://github.com/FasterXML/jackson-bom/compare/jackson-bom-2.18.3...jackson-bom-2.18.4)

---
updated-dependencies:
- dependency-name: com.fasterxml.jackson:jackson-bom
  dependency-version: 2.18.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-11 00:18:49 +00:00
dependabot[bot]
b7b5e3f779 Bump org.jruby:jruby-complete from 9.4.12.0 to 9.4.12.1 (#10011)
Bumps org.jruby:jruby-complete from 9.4.12.0 to 9.4.12.1.

---
updated-dependencies:
- dependency-name: org.jruby:jruby-complete
  dependency-version: 9.4.12.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-11 00:09:05 +00:00
dependabot[bot]
5a44b9cf75 Bump com.github.spotbugs in the development-dependencies group (#10010)
Bumps the development-dependencies group with 1 update: com.github.spotbugs.


Updates `com.github.spotbugs` from 6.1.10 to 6.1.11

---
updated-dependencies:
- dependency-name: com.github.spotbugs
  dependency-version: 6.1.11
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: development-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-11 00:08:14 +00:00
Artem Bilan
ed211011e8 Upgrade to MongoDB 5.5.0 2025-05-08 10:05:39 -04:00