Skip to content

Commit

Permalink
fix: Publish artifacts without additional classifiers (#1011)
Browse files Browse the repository at this point in the history
Fix array out of bounds exception when publishing an artifact without additional
classifiers.
  • Loading branch information
bertschneider authored Jan 2, 2024
1 parent 1dd7329 commit 61e782a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public static void main(String[] args)
futures.add(upload(repo, credentials, coords, "." + ext, mainArtifact, gpgSign));
}

if (args.length > 3) {
if (args.length > 3 && !args[3].isEmpty()) {
List<String> extraArtifactTuples = Splitter.onPattern(",").splitToList(args[3]);
for (String artifactTuple : extraArtifactTuples) {
String[] splits = artifactTuple.split("=");
Expand Down

0 comments on commit 61e782a

Please sign in to comment.