See gh-43498
This commit is contained in:
Johnny Lim
2024-12-13 23:40:38 +09:00
committed by Phillip Webb
parent e62bda9c04
commit 4d15ee5bf0
12 changed files with 52 additions and 50 deletions

View File

@@ -216,7 +216,7 @@ public abstract class CheckBom extends DefaultTask {
.getResolvedConfiguration()
.getResolvedArtifacts();
if (artifacts.size() != 1) {
throw new IllegalStateException("Expected a single file but '%s' resolved to %d artifacts"
throw new IllegalStateException("Expected a single artifact but '%s' resolved to %d artifacts"
.formatted(coordinates, artifacts.size()));
}
return artifacts.iterator().next().getFile();