Looking at your pom.xml seems the problem is the dependecy:
<dependency>
<groupId>org.springframework.batch</groupId>
<artifactId>spring-batch-core</artifactId>
<version>4.3.8</version>
</dependency>
Starting from spring-batch 5.0 in class ItemWriter
the method signature for write
changed from this:
void write(List<? extends T> items) throws Exception;
Spring batch 4.3.x -> https://github.com/spring-projects/spring-batch/blob/4.3.x/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/ItemWriter.java
to this:
void write(@NonNull Chunk<? extends T> chunk) throws Exception;
Spring batch 5.0.x -> https://github.com/spring-projects/spring-batch/blob/5.0.x/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/ItemWriter.java
Maybe you are using a spring-boot 3.x+ which have spring-batch dependecy 5.x+, forcing into pom.xml version 4.3.8 you are causing a conflict. Try to remove version forced like other dependecies.
NOTE: you can remove the entire dependency because spring-boot-starter-batch
import spring-batch-core