options.encoding='UTF-8'

configure source encoding in build.gradle (org.springframework.batch.support.transaction.TransactionAwareBufferedWriterTests.testBufferSizeInTransactionWithMultiByteCharacterUTF8 was failing on my machine, because my default encoding is not UTF-8)