File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/main/java/io/github/fvarrui/javapackager/gradle Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -51,9 +51,10 @@ public File apply(Packager packager) {
5151 jarTask .getManifest ().getAttributes ().put ("Build-Jdk" , System .getProperty ("java.version" ));
5252 jarTask .getManifest ().getAttributes ().put ("Class-Path" , StringUtils .join (dependencies , " " ));
5353 jarTask .getManifest ().getAttributes ().put ("Main-Class" , mainClass );
54- jarTask .getManifest ().attributes (manifest .getAdditionalEntries ());
55-
56- manifest .getSections ().stream ().forEach (s -> jarTask .getManifest ().attributes (s .getEntries (), s .getName ()));
54+ if (manifest != null ) {
55+ jarTask .getManifest ().attributes (manifest .getAdditionalEntries ());
56+ manifest .getSections ().stream ().forEach (s -> jarTask .getManifest ().attributes (s .getEntries (), s .getName ()));
57+ }
5758
5859 jarTask .getActions ().forEach (action -> action .execute (jarTask ));
5960
You can’t perform that action at this time.
0 commit comments