This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch line
in repository https://gitbox.apache.org/repos/asf/maven-dependency-plugin.git

commit 81fbe2197f0522c5572daa9ac40a482ef375eecf
Author: Elliotte Rusty Harold <elh...@ibiblio.org>
AuthorDate: Sat Nov 9 18:17:09 2024 -0500

    use common line separator
---
 .../org/apache/maven/plugins/dependency/ListRepositoriesMojo.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/src/main/java/org/apache/maven/plugins/dependency/ListRepositoriesMojo.java 
b/src/main/java/org/apache/maven/plugins/dependency/ListRepositoriesMojo.java
index fa067ded..d8c5ebaf 100644
--- 
a/src/main/java/org/apache/maven/plugins/dependency/ListRepositoriesMojo.java
+++ 
b/src/main/java/org/apache/maven/plugins/dependency/ListRepositoriesMojo.java
@@ -99,7 +99,7 @@ public class ListRepositoriesMojo extends 
AbstractDependencyMojo {
             }));
 
             if (repositories.isEmpty()) {
-                getLog().info("No remote repository is used by this build." + 
System.lineSeparator());
+                getLog().info("No remote repository is used by this build.\n");
                 return;
             }
 
@@ -132,16 +132,16 @@ public class ListRepositoriesMojo extends 
AbstractDependencyMojo {
                 .append(repo)
                 .append(" mirrored by ")
                 .append(mirror)
-                .append(System.lineSeparator()));
+                .append("\n"));
     }
 
     private void prepareRemoteRepositoriesList(
             StringBuilder message, Collection<RemoteRepository> 
remoteProjectRepositories) {
 
-        message.append("Project remote repositories used by this 
build:").append(System.lineSeparator());
+        message.append("Project remote repositories used by this build:\n");
 
         remoteProjectRepositories.forEach(
-                repo -> message.append(" * 
").append(repo).append(System.lineSeparator()));
+                repo -> message.append(" * ").append(repo).append("\n"));
     }
 
     private Map<RemoteRepository, RemoteRepository> 
getMirroredRepo(Set<RemoteRepository> repositories) {

Reply via email to