Skip to content

Commit

Permalink
Uses the extension of the maven pluging instead of parent projects pa…
Browse files Browse the repository at this point in the history
…ckaging

---
 Signed-off-by: Peter Kriens <[email protected]>

Signed-off-by: Peter Kriens <[email protected]>
  • Loading branch information
pkriens committed Sep 5, 2023
1 parent 0f61791 commit a14c967
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ private void addMavenMetadataToJar(Jar bndJar) throws IOException {

private File getArtifactFile() {
return new File(getOutputDir(), finalName + getClassifier().map("-"::concat)
.orElse("") + "." + getExtension(project.getPackaging()));
.orElse("") + "." + getExtension(getType().orElse(project.getPackaging())));
}

private String getExtension(String type) {
Expand Down

0 comments on commit a14c967

Please sign in to comment.