I'm developing on a Windows machine against a Unix repo, and have core.autocrlf=input set globally. My understanding based on #22 (comment) was that this was a supported scenario, without requiring further configuration.
Running spotless 3.18.0 on Gradle 5.0, spotless fails my build and appears to demand that I change line endings to \r\n.
My spotless config block is pretty simple:
spotless {
java {
importOrderFile 'build/packages.importorder'
removeUnusedImports()
eclipse().configFile 'build/PDSJavaCodeFormatter.xml'
}
}
I've tried explicitly setting lineEndings: 'GIT_ATTRIBUTES' (no change in behavior), and lineEndings: 'UNIX' (this works, but I'm not able to update every repo I have to work with).
Am I doing something daft here?