The changes for https://github.com/spring-projects/spring-boot/issues/29670 have broken the build on Windows. Using Gradle's property expansion while copying files causes the line endings to change on Windows. This then breaks the checkFormatMain task. It's a known issue with Gradle so we'll have to work around it.