[MSHARED-954] Deprecate platform dependent unifyLineSeparators method (#63)
* deprecate unifyLineSeparators
diff --git a/src/main/java/org/apache/maven/shared/utils/StringUtils.java b/src/main/java/org/apache/maven/shared/utils/StringUtils.java
index b44a054..b0906e0 100644
--- a/src/main/java/org/apache/maven/shared/utils/StringUtils.java
+++ b/src/main/java/org/apache/maven/shared/utils/StringUtils.java
@@ -2403,8 +2403,12 @@
* @param s a not null String
* @return a String that contains only System line separators
* @see #unifyLineSeparators(String, String)
- *
+ * @deprecated this method produces platform dependent code and contributes to
+ * non-reproducible builds. In the context of Maven, this is almost never what's needed.
+ * Remove calls to this method and do not replace them. That is, change
+ * {@code Stringutils.unifyLineSeparators(s)} with simply {@code s}.
*/
+ @Deprecated
public static String unifyLineSeparators( @Nullable String s )
{
return unifyLineSeparators( s, System.getProperty( "line.separator" ) );