diff --git a/CHANGELOG.md b/CHANGELOG.md index 254ca46..e119fbf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # ChangeLog -## 1.0.0-SNAPSHOT +## 1.0.0 Support for [Spring Batch 5.0.0](https://github.com/spring-projects/spring-batch/releases/tag/v5.0.0). diff --git a/README.md b/README.md index c917a79..e354f6f 100644 --- a/README.md +++ b/README.md @@ -13,35 +13,31 @@ Spring Batch Plus provides extension features to [Spring Batch](https://github.c ```kotlin @Bean -fun subJob1(batch: BatchDsl): Job = batch { - job("subJob1") { - step("testStep1") { - tasklet { _, _ -> - RepeatStatus.FINISHED - } +fun testJob(batch: BatchDsl): Job = batch { + job("testJob") { + step("jobStep1") { + jobBean("subJob1") + } + step("jobStep2") { + jobBean("subJob2") } } } @Bean -fun subJob2(batch: BatchDsl): Job = batch { - job("subJob2") { - step("testStep2") { - tasklet { _, _ -> - RepeatStatus.FINISHED - } +fun subJob1(batch: BatchDsl, transactionManager: PlatformTransactionManager): Job = batch { + job("subJob1") { + step("testStep1") { + tasklet({ _, _ -> RepeatStatus.FINISHED }, transactionManager) } } } @Bean -fun testJob(batch: BatchDsl): Job = batch { - job("testJob") { - step("jobStep1") { - jobBean("subJob1") - } - step("jobStep2") { - jobBean("subJob2") +fun subJob2(batch: BatchDsl, transactionManager: PlatformTransactionManager): Job = batch { + job("subJob2") { + step("testStep2") { + tasklet({ _, _ -> RepeatStatus.FINISHED }, transactionManager) } } } @@ -71,8 +67,8 @@ class SampleTasklet : ItemStreamReaderProcessorWriter { return "'$item'" } - override fun write(items: List) { - println(items) + override fun write(chunk: Chunk) { + println(chunk.items) } } @@ -84,7 +80,7 @@ fun testJob( ): Job = batch { job("testJob") { step("testStep") { - chunk(3) { + chunk(3, ResourcelessTransactionManager()) { reader(sampleTasklet.asItemStreamReader()) processor(sampleTasklet.asItemProcessor()) writer(sampleTasklet.asItemStreamWriter()) @@ -103,11 +99,12 @@ fun testJob( We've tested following versions only. Other versions may not work. -| Spring Batch Plus Version | Spring Batch Version | Kotlin Version | Java Version | Samples | -|---------------------------|----------------------|----------------|--------------|--------------------------------------------------------------------------------------------| -| 0.3.x | 4.3.x | 1.5 or higher | 1.8 or higher| [Samples](https://github.com/naver/spring-batch-plus/tree/v0.3.0/spring-batch-plus-sample) | -| 0.2.x | 4.3.x | 1.5 or higher | 1.8 or higher| [Samples](https://github.com/naver/spring-batch-plus/tree/v0.2.0/spring-batch-plus-sample) | -| 0.1.x | 4.3.x | 1.5 or higher | 1.8 or higher| [Samples](https://github.com/naver/spring-batch-plus/tree/v0.1.0/spring-batch-plus-sample) | +| Spring Batch Plus Version | Spring Batch Version | Kotlin Version | Java Version | Samples | +|---------------------------|----------------------|----------------|---------------|--------------------------------------------------------------------------------------------| +| 1.0.x | 5.0.x | 1.5 or higher | 17 or higher | [Samples](https://github.com/naver/spring-batch-plus/tree/v1.0.0/spring-batch-plus-sample) | +| 0.3.x | 4.3.x | 1.5 or higher | 1.8 or higher | [Samples](https://github.com/naver/spring-batch-plus/tree/v0.3.0/spring-batch-plus-sample) | +| 0.2.x | 4.3.x | 1.5 or higher | 1.8 or higher | [Samples](https://github.com/naver/spring-batch-plus/tree/v0.2.0/spring-batch-plus-sample) | +| 0.1.x | 4.3.x | 1.5 or higher | 1.8 or higher | [Samples](https://github.com/naver/spring-batch-plus/tree/v0.1.0/spring-batch-plus-sample) | ## Download @@ -165,14 +162,18 @@ Java ## User Guide -- [Korean](./doc/ko/README.md) -- [English](./doc/en/README.md) +- 1.0.x + - [Korean](./doc/ko/README.md) + - [English](./doc/en/README.md) +- 0.3.x + - [Korean](https://github.com/naver/spring-batch-plus/tree/0.3.x/doc/ko) + - [English](https://github.com/naver/spring-batch-plus/tree/0.3.x/doc/en) ## Build from source ### Prerequisites -- Jdk8 or higher +- Jdk 17 or higher - Kotlin 1.5 or higher ### Build diff --git a/gradle.properties b/gradle.properties index cb5dc93..ce25ed8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ kotlin.code.style=official group=com.navercorp.spring -version=1.0.0-SNAPSHOT +version=1.0.0 org.gradle.daemon=true org.gradle.parallel=true org.gradle.caching=true