Use System.lineSeparator() on all systems by ppkarwasz · Pull Request #335 · mojohaus/flatten-maven-plugin (original) (raw)
The current version of the flatten-maven-plugin switches between LF and CRLF line endings based on the system name.
Reproducible builds require normalization of line endings on all systems. This PR allows to change the generated line endings by passing an appropriate -Dline.separator=... option to Maven and therefore allows to use LF line endings also on Windows machines (or CRLF line endings on UNIX machines).