Commit Graph

1725 Commits

Author SHA1 Message Date
Spring Builds
ba7cad4ad8 [artifactory-release] Release version 5.0.0-M6 2022-09-21 18:35:29 +00:00
Mahmoud Ben Hassine
42b1b2f2c9 Put back "Replace ListenableFuture with CompletableFuture"
Related to a165247284.
2022-08-24 20:08:14 +02:00
Spring Builds
878578f829 [artifactory-release] Next development version 2022-08-24 17:14:59 +00:00
Spring Builds
7fc0af6785 [artifactory-release] Release version 5.0.0-M5 2022-08-24 17:14:56 +00:00
Mahmoud Ben Hassine
a165247284 Revert "Replace ListenableFuture with CompletableFuture"
This reverts commit a2cf74ad as the change was made after
spring-kafka 3.0.0-M5 was released. This version is required
to release spring-batch 5.0.0-M5

This change will be put back after releasing 5.0.0-M5.
2022-08-24 18:09:29 +02:00
Mahmoud Ben Hassine
0a75bc7d84 Deprecate Hibernate support
Resolves #4150
2022-08-24 15:49:29 +02:00
Mahmoud Ben Hassine
fe40370f39 Refine contribution #4167
The documentation generation change introduced
in #4167 seems to scan more files than previously
WRT checking the code formatting style.

This commit fixes the formatting of the files
that do not conform to the Spring style.
2022-08-21 09:52:35 +02:00
Mahmoud Ben Hassine
e67c0069f1 Use the Chunk API consistently
This commit replaces the usage of List with Chunk
where appropriate. Summary of changes:

- The Chunk class was moved from the `org.springframework.batch.core.step.item` package to the `org.springframework.batch.item` package
- The signature of the method `ItemWriter#write(List)` was changed to `ItemWriter#write(Chunk)`
- All implementations of `ItemWriter` were updated to use the Chunk API instead of List
- All methods in the `ItemWriteListener` interface were updated to use the Chunk API instead of List
- All implementations of `ItemWriteListener` were updated to use the Chunk API instead of List
- The constructor of `ChunkRequest` was changed to accept a Chunk instead of a Collection of items
- The return type of `ChunkRequest#getItems()` was changed from List to Chunk

Resolves #3954
2022-08-19 13:40:09 +02:00
Henning Poettker
e4056b4234 Polish Spring Batch Infrastructure tests 2022-08-02 18:08:36 +02:00
Henning Poettker
f14d57f264 Fix RecordFieldExtractorTests 2022-08-02 16:18:35 +02:00
Mahmoud Ben Hassine
932e93428e Refine #4125
* Fix assertions
* Update RecordFieldExtractorTests to use JUnit Jupiter
2022-07-27 15:28:04 +02:00
Henning Poettker
83d01fbfca Migrate Spring Batch Infrastructure to JUnit Jupiter
Issue #4125
2022-07-27 15:26:22 +02:00
Mahmoud Ben Hassine
30166a8aae Revert "Improve generic type handling in RepositoryItemReader"
This reverts commit a30aaac4be
which had the side effect of no longer being able to use queries
in `RepositoryItemReader` that return a different type than the
repository's entity type.

Resolves #4164
2022-07-26 07:00:22 +02:00
Henning Poettker
a2cf74adec Replace ListenableFuture with CompletableFuture
Related to https://github.com/spring-projects/spring-kafka/issues/2357
2022-07-26 06:39:19 +02:00
Spring Builds
08adb4550a [artifactory-release] Next development version 2022-07-21 03:17:06 +00:00
Spring Builds
d46aeef01d [artifactory-release] Release version 5.0.0-M4 2022-07-21 03:17:03 +00:00
Taeik Lim
ed945ca61d Add @FunctionalInterface where appropriate
Resolves #4107
2022-07-20 19:05:36 +02:00
Fadhel Mahmoud Ben Hassine
3b8b35cffb Exclude micrometer-core from artemis-server dependency
This was causing a version clash for micrometer-core
in spring-batch-test.
2022-07-20 15:35:17 +02:00
Fadhel Mahmoud Ben Hassine
8df2f1f3cb Fix formatting 2022-07-20 12:29:42 +02:00
Fadhel Mahmoud Ben Hassine
1b8a012907 Configure the right FieldExtractor based on the type of items in FlatFileItemWriterBuilder
Resolves #4161
2022-07-20 12:23:17 +02:00
Fadhel Mahmoud Ben Hassine
4d46d581f9 Configure the right FieldSetMapper based on the type of items in FlatFileItemReaderBuilder
Resolves #4160
2022-07-20 07:10:05 +02:00
Fadhel Mahmoud Ben Hassine
9a8fb1e8ec Add FieldExtractor implementation for Java records
Resolves #4159
2022-07-20 06:30:58 +02:00
Marvin Deng
adbc39a381 Remove DataAccessResourceFailureException in xml related classes
Resolves #4132
2022-07-18 18:42:35 +02:00
Henning Poettker
a55f556893 Use Hibernate mapping DTD from classpath 2022-07-18 12:45:06 +02:00
Mahmoud Ben Hassine
a30aaac4be Improve generic type handling in RepositoryItemReader 2022-07-17 08:18:20 +02:00
Mahmoud Ben Hassine
5ba363c8ab Remove RepositoryMethodReference from RepositoryItemReaderBuilder
This class and its usage have been reported to be confusing and
causing context startup failures without real added value.

This commit removes that class to simplify the creation
of a RepositoryItemReader through its builder.

Resolves #793
2022-07-17 06:58:29 +02:00
Mahmoud Ben Hassine
565ddcdf96 Change transaction manager type in default batch configuration
This commits changes the type of the transaction manager
from `DataSourceTransactionManager` to `JdbcTransactionManager`
in the default configuration of `@EnableBatchProcessing`.

The `JdbcTransactionManager` adds common JDBC exception translation
which is beneficial for Spring Batch to improve exception handling
and error reporting.

Resolves #4126
2022-07-16 17:52:43 +02:00
Henning Poettker
3ef199b92b Reduce use of deprecated APIs 2022-07-16 00:17:46 +02:00
Henning Poettker
8fefe29895 Enable ignored test in AbstractDelegatorTests 2022-07-15 23:48:53 +02:00
Mahmoud Ben Hassine
53ebd27a5e Enable KafkaItemReaderTests
These tests were temporarily disabled, see 85a9cad.
Now that https://github.com/spring-projects/spring-kafka/pull/2342
is fixed, these tests are re-enabled again.
2022-07-13 19:31:04 +02:00
Mahmoud Ben Hassine
5a69b6b28b Upgrade Hibernate to version 6.1.1.Final 2022-07-13 18:42:39 +02:00
Mahmoud Ben Hassine
85a9cad193 Temporarily disable KafkaItemReaderTests
These tests are failing due to an invalid pom in
spring-kafka-test

Related issue: https://github.com/spring-projects/spring-kafka/pull/2342
2022-07-13 04:29:21 +02:00
Mahmoud Ben Hassine
7c900a9315 Add junit-jupiter-api dependency to spring-batch-infrastructure 2022-07-13 04:21:04 +02:00
Mahmoud Ben Hassine
95a3cf0f4c Fix tests 2022-06-22 11:41:22 +02:00
Mahmoud Ben Hassine
c4ad90b9b1 Apply spring-javaformat style for consistency with other projects
Resolves #4118
2022-05-25 23:06:48 +02:00
Spring Builds
b9bc4c1488 [artifactory-release] Next development version 2022-05-19 01:22:57 +00:00
Spring Builds
a99f1c8645 [artifactory-release] Release version 5.0.0-M3 2022-05-19 01:22:54 +00:00
Mahmoud Ben Hassine
cca4f7ba8e Remove ldap-core-tiger dependency in spring-batch-infrastructure
spring-ldap-core-tiger has been removed in spring-ldap 3.0.0-M2,
see https://github.com/spring-projects/spring-ldap/issues/621
2022-05-19 02:36:54 +02:00
Mahmoud Ben Hassine
df8dac19df Change default encoding to UTF-8 in file-based readers and writers
This commit overrides the fix in #3910 by using UTF-8
as default encoding in file-based item readers and writers.

Issue #1154
2022-05-17 20:07:03 +02:00
Mahmoud Ben Hassine
5bce15288a Change Resource to WritableResource in file-based item writers
Resolves #756
2022-05-09 11:03:22 +02:00
Mahmoud Ben Hassine
6dad2a2d81 Fix NPE in MongoItemReader when sorting is not specified through the builder
Resolves #4082
2022-05-05 15:57:51 +02:00
Spring Builds
437f4797f8 [artifactory-release] Next development version 2022-03-23 11:57:35 +00:00
Spring Builds
273ddeed90 [artifactory-release] Release version 5.0.0-M2 2022-03-23 11:57:32 +00:00
Drummond Dawson
15e18e5fcd Add constructors with var args/Lists
For classes that have a setter for a List<T> field,
create Constructors that take List<T> and var args of T.

Issue #686
2022-03-21 17:16:24 +01:00
Mahmoud Ben Hassine
968a5b5b2e Refine contribution #595
- Update versions of jdbc driver and docker image
- Update Javadocs
- Remove JOB_CONFIGURATION_LOCATION from DDL schema
- Remove unused resources
2022-03-18 17:45:36 +01:00
Jonathan Bregler
9388abb589 Integrate SAP Hana as supported Spring Batch database
This commit adds SAP HANA as a supported Spring Batch database, enabling
developers to seamlessly move their existing Spring Batch projects to SAP HANA
or easily starting new Spring Batch projects on SAP HANA.

This commit contains the following changes:

- Add SAP HANA to the DatabaseType enum
- Add HanaPagingQueryProvider and tests
- Add properties files for SAP HANA

Issue #2515
2022-03-18 16:52:50 +01:00
Mahmoud Ben Hassine
25375ccc40 Upgrade XStream to version 1.4.19
This commit also improves the XStreamUnmarshallingTests
2022-03-16 18:03:01 +01:00
Edgar Asatryan
2e68451cf3 Check arguments of MongoItemReader#setSort
Issue #4014
2022-02-23 12:29:21 +01:00
me
212b3ce950 change parameterValues check -> CollectionUtils.isEmpty
Resolves #4021
2022-02-22 14:08:25 +01:00
Spring Builds
75b1492039 [artifactory-release] Next development version 2022-01-19 12:13:24 +00:00