Skip to content

Commit

Permalink
Avoid creating file-entries when war-path-for-jar returns nil
Browse files Browse the repository at this point in the history
  • Loading branch information
dpiliouras committed Feb 15, 2021
1 parent 94d52ca commit fac4d1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/leiningen/ring/uberwar.clj
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
$GROUP-$ARTIFACT-$VERSION.jar (see `war-path-for-jar`), otherwise using their original filename."
[war project]
(doseq [jar-file (jar-dependencies project)]
(war/file-entry war project (war-path-for-jar jar-file) jar-file)))
(when-let [war-path (war-path-for-jar jar-file)]
(war/file-entry war project war-path jar-file))))

(defn uberwar
"Create a $PROJECT-$VERSION.war with dependencies."
Expand Down

0 comments on commit fac4d1b

Please sign in to comment.