Skip to content

Commit

Permalink
[upload] add an uploaderName name template. Resolves #762
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Feb 19, 2022
1 parent 4936d2d commit e731477
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import java.util.Map;
import java.util.Set;

import static org.jreleaser.util.Constants.KEY_UPLOADER_NAME;
import static org.jreleaser.util.StringUtils.capitalize;
import static org.jreleaser.util.StringUtils.getClassNameForLowerCaseHyphenSeparatedName;

Expand Down Expand Up @@ -268,6 +269,7 @@ public Map<String, Object> artifactProps(JReleaserContext context, Artifact arti

@Override
public Map<String, Object> artifactProps(Map<String, Object> props, Artifact artifact) {
props.put(KEY_UPLOADER_NAME, getName());
Artifacts.artifactProps(artifact, props);

Set<String> keys = new LinkedHashSet<>(props.keySet());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,9 @@ public interface Constants {
// Gofish
String KEY_GOFISH_PACKAGES = "gofishPackages";

// upload
String KEY_UPLOADER_NAME = "uploaderName";

// Directories
String KEY_BASE_OUTPUT_DIRECTORY = "baseOutputDirectory";
String KEY_OUTPUT_DIRECTORY = "outputDirectory";
Expand Down

0 comments on commit e731477

Please sign in to comment.