Taeik Lim
ed945ca61d
Add @FunctionalInterface where appropriate
...
Resolves #4107
2022-07-20 19:05:36 +02:00
Taeik Lim
8b6343fc8f
Add missing initialized flag set to FlowJob
...
Issue #4142
2022-07-20 18:49:15 +02:00
Jay Bryant
1af645505c
Editing pass
...
for grammar, spelling, consistency and (most importantly) clarity.
2022-07-20 18:32:05 +02:00
Henning Poettker
a393dc533d
Replace deprecated IntegrationFlows
2022-07-20 18:28:34 +02:00
Jay Bryant
61ea236ce0
Javadoc editing
...
for grammar, punctuation, usage, and (sometimes) missing content.
2022-07-20 18:24:13 +02:00
Jay Bryant
e6e21c5e18
Improve Javadocs
2022-07-20 18:15:28 +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
Fadhel Mahmoud Ben Hassine
310c280e40
Override methods from SimpleJobLauncher in TaskExecutorJobLauncher
...
This commit is to prevent usage of deprecated APIs
inherited from SimpleJobLauncher
2022-07-19 18:19:17 +02:00
Fadhel Mahmoud Ben Hassine
08e04817d1
Refine #4131
...
* Deprecate SimpleJobLauncher in favor of TaskExecutorJobLauncher
* Update year in license headers
2022-07-19 13:58:22 +02:00
Marvin Deng
c0791039dc
Rename SimpleJobLauncher to TaskExecutorJobLauncher
...
Resolves #4123
2022-07-19 13:34:23 +02:00
Henning Pöttker
d280556d02
Let fluent setters of SimpleStepBuilder return proper type
...
Let fluent setters of `SimpleStepBuilder` return `this` with type `SimpleStepBuilder`.
This makes the required order of some fluent setters a bit more lenient and prevents
that `AbstractTaskletStepBuilder::listener` for parameters of type `Object` is invoked
although an overloaded method specific for `SimpleStepBuilder` is intended.
Fixes #773 and #1098 .
2022-07-19 13:20:57 +02:00
Fadhel Mahmoud Ben Hassine
8fef41bd76
Rename BatchStepTagsProvider to BatchStepKeyValuesProvider
...
This rename is for consistency with
BatchJobKeyValuesProvider
Related to a19eefa7fd
2022-07-19 12:43:23 +02:00
Jonatan Ivanov
9b3b899360
Remove *Aware interfaces from Micrometer
2022-07-18 18:07:13 -07: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
451db9a968
Fix tests catching nested exceptions
...
These tests started failing after an upstream
change in Spring Framework [1].
[1]: https://github.com/spring-projects/spring-framework/issues/25162
2022-07-16 00:06:42 +02:00
Taeik Lim
12bd08de07
Add package-info.java to integration
2022-07-15 23:52:11 +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
b89ea8e789
Fix tests related to infrastructure beans configuration
...
These tests seem to start failing since 31af573 but were
not caught due to #4121 . This commit fixes the tests that
are related to infrastructure beans configuration.
Some other tests seems to have started failing as well but
are not related to this change set. There were temporarily
ignored in this commit and will be addressed separately.
Issue #4121
2022-07-13 05:30:37 +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
c65b93f707
Add non null assertions in Job/Step builder factories
2022-07-12 19:27:22 +02:00
Mahmoud Ben Hassine
a346f14f80
Change visibility of application context to protected in AbstractBatchConfiguration
2022-07-12 07:11:34 +02:00
Mahmoud Ben Hassine
84ff16addf
Remove unused imports
2022-07-12 07:08:46 +02:00
Mahmoud Ben Hassine
a3bba3908e
Remove redundant imports validation
...
Imports validation is done in BatchConfigurationSelector.
This commit removes the redundant validation done in
AbstractBatchConfiguration.
2022-07-12 07:07:29 +02:00
Mahmoud Ben Hassine
0b2a2c26a2
Add junit-vintage-engine test dependency to spring-batch-core
...
Failing tests will be fixed in a separate commit.
Resolves #4121
2022-06-22 11:57:54 +02:00
Mahmoud Ben Hassine
95a3cf0f4c
Fix tests
2022-06-22 11:41:22 +02:00
Mahmoud Ben Hassine
3454cec279
Fix annotation based listener registration in FaultTolerantStepBuilder
...
Resolves #4137
2022-06-22 11:09:32 +02:00
Mahmoud Ben Hassine
08f8c75ee6
Add test to serialize/deserialize records in the execution context
2022-06-02 10:40:20 +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
Mahmoud Ben Hassine
b3fe088879
Add spring-javaformat-maven-plugin to the build process
...
Issue #4118
2022-05-25 23:06:13 +02:00
Mahmoud Ben Hassine
be82a040a1
Remove micrometer-commons dependency
...
This is already a transitive dependency of
micrometer-observation which is declared
as a compile time dependency.
2022-05-24 15:22:11 +02:00
Mahmoud Ben Hassine
60111c2a7b
Update Spring dependencies to latest snapshots
2022-05-19 09:49:33 +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
45ff5279b8
Prepare release 5.0.0-M3
2022-05-19 02:52:29 +02: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
c4076e855d
Prefix micrometer metric tags with meter names
...
This is what is recommended by the observability
team in terms of tag naming with micrometer 1.10+
for consistency between both metrics and tracing.
In #4065 , only some metrics have been updated to
follow this tag naming convention, but not all of
them. This commit updates all metrics in a similar
way for consistency.
Related to #4065 and #4098 .
2022-05-19 02:07:27 +02:00
Mahmoud Ben Hassine
53eabcdeee
Update the "what's new" section for 5.0.0-M3
2022-05-18 20:29:44 +02:00
Mahmoud Ben Hassine
b969f2abc4
Update flatten-maven-plugin to resolve dependencyManagement in pom files
...
This is required to keep the dependencyManagement section in
the pom of spring-batch-bom and resolve dependency versions.
2022-05-18 12:21:32 +02:00