Skip to content

Commit

Permalink
Document :preserve-eval-meta.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Feb 10, 2024
1 parent 02fbe63 commit a773417
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Leiningen News -- history of user-visible changes

## 2.11.2 / ???

* Add `:preserve-eval-meta` setting to avoid project code reflection. (Marco Biscaro)
* Fix a bug where metadata on project code caused plugin incompatibilities. (Marco Biscaro)

## 2.11.1 / 2024-01-28

* Fix a bug when deploying using passwords read from the console. (Phil Hagelberg)
Expand Down
3 changes: 3 additions & 0 deletions sample.project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,9 @@
;; valid global variables to set (and their meaningful values).
:global-vars {*warn-on-reflection* true
*assert* false}
;; Preserve metadata when evaluating project code. This can remove reflection
;; warnings but can also cause incompatibilities with certain plugins.
:preserve-eval-meta true
;; Use a different `java` executable for project JVMs. Leiningen's own JVM is
;; set with the LEIN_JAVA_CMD environment variable.
:java-cmd "/home/phil/bin/java1.7"
Expand Down

0 comments on commit a773417

Please sign in to comment.