This toolkit provides additional features to the Spring Batch framework.
- Tasklet used to delete data from Spring Batch Metadata tables that are N months old.
- Elasticsearch tasklets, processor and writer to create/setup/delete indices and write documents.
- Logging Spring Batch listener
- Spring Integration Endpoints that launch jobs, wait the end of a job and send email with job information.
- Tasklet that uncompress a zip file to a working directory.
- Tasklet that deletes a directory recursively.
Download the jar though Maven:
<dependency>
<groupId>com.javaetmoi.core</groupId>
<artifactId>spring-batch-toolkit</artifactId>
<version>4.0.0</version>
</dependency>
The Spring Batch Toolkit artefacts are available from Maven Central
Use the below compatibility matrix to choose the appropriated version:
spring-batch-toolkit | spring-batch | spring-framework | elasticsearch | Release date |
---|---|---|---|---|
4.0.0 | 4.0 | 5.0 | 6.0 | |
1.0.1 | 2.2 - 3.x | 4.0 - 4.x | 4.2.3 | 2015-06-15 |
0.1.0 | 2.0 - 2.1 | 3.0 - 3.x | N/A | 2013-07-10 |
- Github is for social coding platform: if you want to write code, we encourage contributions through pull requests from forks of this repository. If you want to contribute code this way, please reference a GitHub ticket as well covering the specific issue you are addressing.
Download the code with git: git clone git://github.com/arey/spring-batch-toolkit.git
Compile the code with maven: mvn clean install
If you're using an IDE that supports Maven-based projects (IntelliJ Idea, Netbeans or m2Eclipse), you can import the project directly from its POM. Otherwise, generate IDE metadata with the related IDE maven plugin: mvn eclipse:clean eclipse:eclipse
By upgrading the Elasticsearch version from 2.1 to 6.0, we used to migrate the unit tests in charge of testing Elasticsearch tasklets et writers. They now inherit from the ESIntegTestCase class provided by the org.elasticsearch.test:framework artefact.
At startup, Elasticsearch checks for duplicate class files across the classpath causing "jar hell". All duplicated classes have been excluded from the pom.xml. For running theses tests from IntelliJ IDEA, you have to do some tricks. See the Elasticsearch Contributing guide
French articles on the javaetmoi.com blog:
Version | Release date | Features |
---|---|---|
4.0.0 | 2017-12-15 | Spring Batch 4.0 upgrade
Spring Framework 5.0 support Elasticsearch 6.0 upgrade |
1.0.1 | 2015-08-29 | Spring Framework 4.2 support |
1.0.0 | 2015-06-15 | Spring Batch 3.0 upgrade
Spring Batch Integration and Admin Endpoints Add UncompressTasklet and DeleteDirectoryTasklet |
0.2.0 | 2013-11-05 | Spring Batch 2.2 upgrade
Elasticsearch tasklets and writer Logging Spring Batch listener |
0.1.0 | 2013-07-10 | RemoveSpringBatchHistoryTasklet, partitioning and parallel steps |