Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use System.lineSeparator() on all systems #335

Merged
merged 1 commit into from Mar 16, 2023

Conversation

ppkarwasz
Copy link
Contributor

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).

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.
@slawekjaranowski
Copy link
Member

It looks better that detecting by os name.

@slawekjaranowski slawekjaranowski merged commit 1f0e61d into mojohaus:master Mar 16, 2023
@ppkarwasz ppkarwasz deleted the line-separator branch March 16, 2023 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants