BATCH-2144 Ensure that Gradle version of Spring Batch compiles with Java 8