Skip to content

Commit

Permalink
Don't write empty jarjar metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Technici4n committed Nov 29, 2023
1 parent c193c13 commit 6c5adf6
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ public InheritManifest getManifest() {
@TaskAction
protected void copy() {
this.jarJarCopySpec.from(getIncludedDependencies());
this.jarJarCopySpec.from(getMetadata());
if (!createMetadata().jars().isEmpty()) {
// Only copy metadata if not empty.
this.jarJarCopySpec.from(getJarJarMetadataPath().toFile());
}
super.copy();
}

Expand Down

0 comments on commit 6c5adf6

Please sign in to comment.