
Move projects to better reflect the way that Spring Boot is released. The following projects are under `spring-boot-project`: - `spring-boot` - `spring-boot-autoconfigure` - `spring-boot-tools` - `spring-boot-starters` - `spring-boot-actuator` - `spring-boot-actuator-autoconfigure` - `spring-boot-test` - `spring-boot-test-autoconfigure` - `spring-boot-devtools` - `spring-boot-cli` - `spring-boot-docs` See gh-9316
34 lines
583 B
Groovy
34 lines
583 B
Groovy
package org.test
|
|
|
|
@Grab("hsqldb")
|
|
@Configuration
|
|
@EnableBatchProcessing
|
|
class JobConfig {
|
|
|
|
@Autowired
|
|
private JobBuilderFactory jobs
|
|
|
|
@Autowired
|
|
private StepBuilderFactory steps
|
|
|
|
@Bean
|
|
protected Tasklet tasklet() {
|
|
return new Tasklet() {
|
|
@Override
|
|
RepeatStatus execute(StepContribution contribution, ChunkContext context) {
|
|
return RepeatStatus.FINISHED
|
|
}
|
|
}
|
|
}
|
|
|
|
@Bean
|
|
Job job() throws Exception {
|
|
return jobs.get("job").start(step1()).build()
|
|
}
|
|
|
|
@Bean
|
|
protected Step step1() throws Exception {
|
|
return steps.get("step1").tasklet(tasklet()).build()
|
|
}
|
|
}
|