Skip to content

Commit

Permalink
[assemble] resolve default value for nativeImage.imageName. Relates to
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Jul 7, 2021
1 parent c60e5ea commit 71323b8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ private static void validateNativeImage(JReleaserContext context, JReleaserConte
if (isBlank(nativeImage.getExecutable())) {
nativeImage.setExecutable(nativeImage.getName());
}
if (isBlank(nativeImage.getImageName())) {
nativeImage.setImageName(nativeImage.getExecutable() + "-" +
context.getModel().getProject().getResolvedVersion());
}

if (isBlank(nativeImage.getGraal().getPath())) {
nativeImage.getGraal().setPath(System.getProperty("java.home"));
Expand Down

0 comments on commit 71323b8

Please sign in to comment.