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
12c5cb967d
Change default encoding to UTF-8 in JdbcExecutionContextDao
...
Resolves #3983
2022-05-17 20:07:03 +02:00
Mahmoud Ben Hassine
398d52a581
Add javax.xml.namespace.QName to trusted classes in Jackson serializer
...
This class is safe to deserialize according to Jackson:
https://github.com/FasterXML/jackson-databind/blob/master/src/main/java/com/fasterxml/jackson/databind/jsontype/impl/SubTypeValidator.java
This also has been checked against Jackson 2.11 to confirm
the backport of this enhancement to 4.3.x.
Resolves #4044
2022-05-17 15:32:21 +02:00
Mahmoud Ben Hassine
c0b8211c4f
Add java.util.UUID to trusted classes in Jackson serializer
...
This class is safe to deserialize according to Jackson:
https://github.com/FasterXML/jackson-databind/blob/master/src/main/java/com/fasterxml/jackson/databind/jsontype/impl/SubTypeValidator.java
This also has been checked against Jackson 2.11 to confirm
the backport of this enhancement to 4.3.x.
Resolves #4110
2022-05-17 11:26:00 +02:00
Mahmoud Ben Hassine
72d9177cf1
Minor refactoring
...
- Extract/Rearrange methods
- Inline variables
- Improve Javadoc formatting
2022-05-15 06:43:56 +02:00
Mahmoud Ben Hassine
670770578a
Remove JobRegistry bean definition in SimpleBatchConfiguration
...
This bean definition is already declared in the parent class.
2022-05-15 01:54:41 +02:00
Mahmoud Ben Hassine
a34a464763
Make ModularBatchConfiguration extend SimpleBatchConfiguration
...
This change makes the added value of ModularBatchConfiguration
compared to SimpleBatchConfiguration more visible.
2022-05-15 01:27:14 +02:00
Mahmoud Ben Hassine
31af573153
Remove the lazy proxy creation of batch artifacts in batch configuration
...
The lazy proxy creation of batch artifacts was intended to prevent
configuration cycles from happening. However, this is implemented in
SimpleBatchConfiguration but not in ModularBatchConfiguration.
Removing this laziness in the configuration process does not introduce
any regression neither in tests nor in samples. This commit makes
SimpleBatchConfiguration consistent with ModularBatchConfiguration.
2022-05-15 01:27:13 +02:00
Henning Poettker
234e28a1e8
Allow lambdas to be passed as item processors
...
Resolves #4061
2022-05-13 23:53:16 +02:00
Mahmoud Ben Hassine
33338a4a30
Remove datasource autowiring in AbstractBatchConfiguration
...
Before this commit, the datasource was autowired in
AbstractBatchConfiguration. This was causing context
startup failures when no datasource or more than one
datasource is present in the context.
This commit fixes these failures by looking for the
datasource in the application context. This also
prevents cyclic configuration dependencies when
the datasource bean is defined in the same class where
other batch artifacts are autowired.
Resolves #3991
2022-05-13 18:46:33 +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
74e8caa368
Add default methods in Job and Step interfaces
...
Default values are consistent with AbstractJob
and AbstractStep.
Issue #3924
2022-05-09 10:29:57 +02:00
Mahmoud Ben Hassine
9f4424f4fa
Fix documentation WRT restarting an abruptly stopped job
...
Resolves #4037
2022-05-05 18:03:18 +02:00
Mahmoud Ben Hassine
bbbc4a7a18
Fix Javadoc errors
2022-05-05 17:52:56 +02:00
Jay Bryant
cd43f3b6ee
Editing pass for Javadocs
...
Mostly proofreading but a bit more detail in a couple places.
Issue #4096
2022-05-05 17:35:10 +02:00
Mahmoud Ben Hassine
30ad62f78a
Refine contribution #4083
...
Add "Spring Batch Architecture" section to the index
2022-05-05 17:21:43 +02:00
Jay Bryant
9b8782490f
Editing pass for reference docs
...
Issue #4083
2022-05-05 17:08:05 +02:00
Jay Bryant
d00cd947ca
Editing pass for Javadocs
...
Update javadocs of org.springframework.batch.core
but not further down that tree.
Issue #4090
2022-05-05 16:57:01 +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
Mahmoud Ben Hassine
b20ec80309
Polish bug_report.md
2022-04-29 10:45:00 +02:00
Starchenko Ilya
ad92d2a6c9
Fix Javadoc of SpringBatchTest annotation
...
fix double @-symbol in javadoc
Issue #4102
2022-04-27 15:14:20 +02:00
Mahmoud Ben Hassine
a722cd2f53
Refine contribution #4099
...
- Add migration script for SQLITE
- Update the script of SAP HANA with the new column
2022-04-27 14:56:19 +02:00
Marvin Deng
464985bf0a
Distinguish CreateTime and StartTime in StepExecution
...
- Add field createTime for StepExecution.
- Add column create_time for batch_step_execution and make start_time default null.
- Make getLastStepExecution order by createTime instead of startTime.
- Add migration scripts for 5.0
Resolves #4049
2022-04-27 14:56:18 +02:00
Marcin Grzejszczak
a19eefa7fd
Upgraded to Micrometer 1.10.0-SNAPSHOT
2022-04-15 12:35:20 +02:00
Mahmoud Ben Hassine
0b49e082a2
Upgrade jackson version to 2.13.2.2
2022-04-11 15:04:36 +02:00
Mahmoud Ben Hassine
164066fa7d
Update Java version in build instructions when using Docker
2022-04-04 12:46:32 +02:00
Danilo Piazzalunga
200724dd0f
Make JUnit 4 an optional dependency in spring-batch-test
...
Resolves #4033
2022-04-01 16:28:32 +02:00
Xavi Lee
f23ab15448
Update copyright date
2022-04-01 16:17:59 +02:00
Mahmoud Ben Hassine
6fef82eff7
Fix breaking changes introduced in micrometer-commons
2022-03-30 10:25:01 +02:00
Mahmoud Ben Hassine
819126259d
Update Spring dependencies to latest snapshots
2022-03-28 18:48:03 +02:00
Moritz Halbritter
404e0a3dbd
Update to Micrometer 2.0.0-SNAPSHOT
...
See gh-4079
2022-03-25 09:37:18 +01: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
Mahmoud Ben Hassine
ff9d069514
Update "what's new section"
2022-03-23 11:11:32 +01:00
Mahmoud Ben Hassine
dc04f53141
Prepare release 5.0.0-M2
2022-03-23 09:45:46 +01:00
Mahmoud Ben Hassine
984570a1b1
Rename schema-oracle10g.sql to schema-oracle.sql
...
Resolves ##1057
2022-03-22 17:29:59 +01: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
44dd4f7f56
Make the DOUBLE_TYPE constant public in DefaultJobParametersConverter
...
This commit changes the visibility of the DOUBLE_TYPE constant
to be consistent with other constants.
2022-03-17 18:39:57 +01:00
Glenn Renfro
4e357097bb
Add missing docs for batch.core and batch.core.configuration packages
...
Issue #4068
2022-03-17 18:36:01 +01:00
Mahmoud Ben Hassine
61ffc5536e
Update dependencies
2022-03-17 16:41:24 +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
Mahmoud Ben Hassine
9cbde4eea6
Fix RepositoryFunctionalTests
...
Due to the decoupling of `PagingAndSortingRepository` from
`CrudRepository` in Spring Data 3 [1], this test has to be updated
to use different repositories between the reader and the writer
according to the expected types for the `repository` property.
[1]: https://github.com/spring-projects/spring-data-commons/issues/2537
2022-03-16 17:15:56 +01:00
Mahmoud Ben Hassine
905630d521
Update mongodb-driver-sync to version 4.5.0
2022-03-16 17:07:15 +01:00
Mahmoud Ben Hassine
ae6c0b9809
Refine contribution #4065
...
* Fix tests
* Update Javadocs
* Update year in license headers
* Move observability APIs to a separate package
2022-03-16 17:03:14 +01:00
Marcin Grzejszczak
e917d75d20
Add Observation API
...
Issue #4065
2022-03-16 16:14:50 +01:00
Rod Lecocq
6b34563c6f
Fix doc for schema BATCH_JOB_INSTANCE.JOB_KEY
...
Fixes #4071
2022-03-08 12:06:19 +01:00
Glenn Renfro
710d89ce9d
Remove benign [WARNINGS] from batch build
...
This is done by:
1) Enabling quiet for doc build so that it, "Shuts off non-error and non-warning messages," so that builders can focus on warnings.
2) Disable missing javadoc warnings. We will handle missing javadoc warnings in subsequent PRs.
3) Fix existing warnings that are in the batch code base.
This reduces the number of [WARNING]s from 7171 down to 52
2022-03-04 15:37:14 +01:00
Edgar Asatryan
2e68451cf3
Check arguments of MongoItemReader#setSort
...
Issue #4014
2022-02-23 12:29:21 +01:00