Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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