Skip to content

Commit

Permalink
Prepare for v1.0.0
Browse files Browse the repository at this point in the history
Signed-off-by: Taeik Lim <sibera21@gmail.com>
  • Loading branch information
acktsap committed Mar 29, 2023
1 parent 2403cba commit ae0b1bb
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 32 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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).

Expand Down
61 changes: 31 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
Expand Down Expand Up @@ -71,8 +67,8 @@ class SampleTasklet : ItemStreamReaderProcessorWriter<Int, String> {
return "'$item'"
}

override fun write(items: List<String>) {
println(items)
override fun write(chunk: Chunk<String>) {
println(chunk.items)
}
}

Expand All @@ -84,7 +80,7 @@ fun testJob(
): Job = batch {
job("testJob") {
step("testStep") {
chunk<Int, String>(3) {
chunk<Int, String>(3, ResourcelessTransactionManager()) {
reader(sampleTasklet.asItemStreamReader())
processor(sampleTasklet.asItemProcessor())
writer(sampleTasklet.asItemStreamWriter())
Expand All @@ -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

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit ae0b1bb

Please sign in to comment.