Commit Graph

1046 Commits

Author SHA1 Message Date
Mahmoud Ben Hassine
5bccfed523 Replace synchronized blocks and methods with locks
This commit replaces synchronized blocks and methods
that are used frequently or that guard blocking I/O
operations with locks. This is required to prevent
virtual threads pinning, as explained in JEP 444 [1].

Note that synchronized blocks and methods that are used
infrequently (like AutomaticJobRegistrar#start/stop) or
that guard in-memory operations were not replaced as this
is not required, see JEP 444 [1].

Resolves to #4399

---
[1]: https://openjdk.org/jeps/444
2023-07-15 08:18:07 +02:00
Mahmoud Ben Hassine
05168089f1 Add test suite for virtual threads support
Related to #4399
2023-07-14 23:53:20 +02:00
Mahmoud Ben Hassine
d937a61603 Upgrade version to 5.1.0-SNAPSHOT 2023-07-06 09:35:22 +02:00
Mahmoud Ben Hassine
f82c16b825 Fix javadoc errors and warnings
Resolves #1624
2023-07-06 06:46:26 +02:00
Mahmoud Ben Hassine
efdb59e570 Replace hardcoded charsets with StandardCharsets 2023-07-05 08:03:48 +02:00
Mahmoud Ben Hassine
f0137bc54c Remove redundant modifiers 2023-07-05 08:03:48 +02:00
Mahmoud Ben Hassine
0a1cdb095f Mark fields as final where appropriate 2023-07-05 08:03:48 +02:00
Mahmoud Ben Hassine
241e37e672 Remove concatenation with empty string 2023-07-05 08:03:47 +02:00
Mahmoud Ben Hassine
96f8d6bd35 Replace anonymous types with lambda expressions or method references 2023-07-04 18:50:16 +02:00
Mahmoud Ben Hassine
ee30af4789 Remove redundant "extends Object" 2023-06-22 11:17:13 +02:00
Mahmoud Ben Hassine
850c27e08e Fix datasource configuration in metrics sample 2023-06-15 22:38:12 +02:00
Mahmoud Ben Hassine
93d911e100 Use lambdas and method references where appropriate 2023-06-12 16:43:46 +02:00
Mahmoud Ben Hassine
c5b4f1a777 Remove unnecessary boxing/unboxing 2023-06-12 16:17:32 +02:00
Mahmoud Ben Hassine
cb1b68d165 Replace if statements with switch statements where appropriate 2023-06-12 15:39:25 +02:00
Mahmoud Ben Hassine
7f80b7230b Remove System.err.println from tests 2023-06-07 15:47:56 +02:00
Mahmoud Ben Hassine
27e2ab02c0 Remove Hibernate debug details from tests 2023-06-07 15:47:56 +02:00
Mahmoud Ben Hassine
92159cbc2b Use diamond operator where appropriate 2023-06-05 13:48:49 +02:00
Mahmoud Ben Hassine
0dc5b63469 Replace identical catch sections with multi-catch blocks 2023-06-05 13:30:23 +02:00
Mahmoud Ben Hassine
8070751da8 Improve String concatenation where appropriate 2023-06-05 13:19:28 +02:00
Mahmoud Ben Hassine
c25cd55901 Upgrade spring-javaformat maven plugin to version 0.0.39 2023-06-05 11:11:48 +02:00
Mahmoud Ben Hassine
b0f7e3d6fe Next development version 2023-05-17 16:15:55 +02:00
Mahmoud Ben Hassine
1266de6e35 Release version 5.0.2 2023-05-17 16:13:05 +02:00
Minsoo Kim
4a971a0764 Enhance switch statements
Issue #4365
2023-05-03 23:59:16 +02:00
Mahmoud Ben Hassine
972951a40a Remove unused imports and apply imports code style 2023-04-11 16:28:36 +02:00
Henning Poettker
e61065ab00 Reduce use of deprecated APIs 2023-03-29 15:34:48 +02:00
Mahmoud Ben Hassine
37c26dd005 Next development version 2023-02-23 00:27:23 +01:00
Mahmoud Ben Hassine
3aa503d6ca Release version 5.0.1 2023-02-23 00:20:40 +01:00
jinwoo-Bae
2cc0be4a0c Replace usage of deprecated jobOperator#start method with newer version
Related to #4303
2023-02-21 15:52:25 +01:00
Henning Poettker
523386e674 Prefer Slice over Page in RepositoryItemReader
Resolves #4115
2023-02-17 17:13:36 +01:00
Mahmoud Ben Hassine
0dfa73773b Remove unused job parameters in samples 2023-02-16 15:47:14 +01:00
Mahmoud Ben Hassine
2de8956840 Remove usage of deprecated maven expressions
This commit replaces the usage of `${parent.version}`
with `${project.parent.version}` to fix the following
maven warning:

```
[WARNING] The expression ${parent.version} is deprecated.
Please use ${project.parent.version} instead.
```
2023-02-07 22:45:43 +01:00
Mahmoud Ben Hassine
078b011fe8 Update maven pom files
- Remove unused plugins and repositories
- Extract versions as properties
2022-12-09 02:47:04 +01:00
Mahmoud Ben Hassine
debdd9f49c Revert "Update next development version to 5.1.0-SNAPSHOT"
This reverts commit 7a34a1520f.
2022-12-09 01:30:34 +01:00
Mahmoud Ben Hassine
7a34a1520f Update next development version to 5.1.0-SNAPSHOT 2022-12-08 17:26:37 +01:00
Spring Builds
656e3f8895 [artifactory-release] Next development version 2022-11-24 03:30:11 +00:00
Spring Builds
3bef84da7c [artifactory-release] Release version 5.0.0 2022-11-24 03:30:08 +00:00
Danilo Piazzalunga
fc0ec01ff8 Throw IllegalStateException from afterPropertiesSet
Consistently use Assert.state in the afterPropertiesSet()
methods to throw IllegalStateException instead of
IllegalArgumentException when some properties are missing
and/or invalid.

Resolves #2244
2022-11-23 12:22:26 +01:00
Mahmoud Ben Hassine
05bbd3f7ea Remove dependency autowiring in test utilities
Issue #4233
2022-11-16 14:21:17 +01:00
Spring Builds
e273ec151e [artifactory-release] Next development version 2022-11-09 14:34:37 +00:00
Spring Builds
420a7baa75 [artifactory-release] Release version 5.0.0-RC2 2022-11-09 14:34:34 +00:00
Henning Poettker
3bb7ce532b Improve @SpringBatchTest to autowire the job under test in JobLauncherTestUtils if it is unique
Issue #4218
2022-11-08 13:16:36 +01:00
Spring Builds
24283a8a1f [artifactory-release] Next development version 2022-10-19 23:57:21 +00:00
Spring Builds
adde7d764e [artifactory-release] Release version 5.0.0-RC1 2022-10-19 23:57:18 +00:00
Spring Builds
58c760b3ef [artifactory-release] Next development version 2022-10-13 10:34:01 +00:00
Spring Builds
87f3644667 [artifactory-release] Release version 5.0.0-M8 2022-10-13 10:33:58 +00:00
Mahmoud Ben Hassine
2b258d1b88 Change the default execution context serializer to DefaultExecutionContextSerializer
This commit changes the default execution context serializer to
DefaultExecutionContextSerializer, which makes Jackson an optional
dependency.

Resolves #4140
2022-10-10 10:39:50 +02:00
Spring Builds
58ce4fecac [artifactory-release] Next development version 2022-10-05 04:16:28 +00:00
Spring Builds
771c14f00d [artifactory-release] Release version 5.0.0-M7 2022-10-05 04:16:25 +00:00
Mahmoud Ben Hassine
2660f2bb27 Add support to use any type as a job parameter
This commit also changes the way job parameters
are parsed and persisted.

NB: This commit should ideally have been split
into two change sets. But the changes are tightly
related that is was not possible to separate them.

Related to:

* https://github.com/spring-projects/spring-batch/issues/3960
* https://github.com/spring-projects/spring-batch/issues/2122
* https://github.com/spring-projects/spring-batch/issues/1035
* https://github.com/spring-projects/spring-batch/issues/1983
2022-10-04 20:35:50 +02:00
Spring Builds
83ef59ac5e [artifactory-release] Next development version 2022-09-21 18:35:32 +00:00