Merge branch '3.1.x'
Closes gh-36238
This commit is contained in:
@@ -50,7 +50,7 @@ class ArtifactCollector {
|
||||
Collection<DeployableArtifact> collectArtifacts(Path root) {
|
||||
try (Stream<Path> artifacts = Files.walk(root)) {
|
||||
return artifacts.filter(Files::isRegularFile).filter(this.excludeFilter)
|
||||
.map((artifact) -> deployableArtifact(artifact, root)).collect(Collectors.toList());
|
||||
.map((artifact) -> deployableArtifact(artifact, root)).toList();
|
||||
}
|
||||
catch (IOException ex) {
|
||||
throw new RuntimeException("Could not read artifacts from '" + root + "'");
|
||||
|
||||
@@ -208,7 +208,7 @@ public class SonatypeService {
|
||||
List<String> failureMessages = Stream.of(activities).flatMap((activity) -> activity.events.stream())
|
||||
.filter((event) -> event.severity > 0).flatMap((event) -> event.properties.stream())
|
||||
.filter((property) -> "failureMessage".equals(property.name))
|
||||
.map((property) -> " " + property.value).collect(Collectors.toList());
|
||||
.map((property) -> " " + property.value).toList();
|
||||
if (failureMessages.isEmpty()) {
|
||||
logger.error("Close failed for unknown reasons");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user