Skip to content

Commit

Permalink
More readable formatting in the warning advising users to not publish…
Browse files Browse the repository at this point in the history
… a project having auto-named dependencies.

Note: this warning is questionable. Should it be removed?
  • Loading branch information
desruisseaux authored and gnodet committed Sep 30, 2024
1 parent 2efeaf7 commit 8f34ea4
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,11 @@ Optional<String> warningForFilenameBasedAutomodules(Collection<Path> modulePaths
if (automodulesDetected.isEmpty()) {
return Optional.empty();
}
String lineSeparator = System.lineSeparator();
var joiner = new StringJoiner(
", ",
"Filename-based automodules detected on the module-path: ",
"Please don't publish this project to a public artifact repository.");
lineSeparator + " - ",
"Filename-based automodules detected on the module-path: " + lineSeparator + " - ",
lineSeparator + "Please don't publish this project to a public artifact repository.");
automodulesDetected.forEach(joiner::add);
return Optional.of(joiner.toString());
}
Expand Down

0 comments on commit 8f34ea4

Please sign in to comment.