Skip to content

Commit a773417

Browse files
committed
Document :preserve-eval-meta.
1 parent 02fbe63 commit a773417

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

NEWS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Leiningen News -- history of user-visible changes
22

3+
## 2.11.2 / ???
4+
5+
* Add `:preserve-eval-meta` setting to avoid project code reflection. (Marco Biscaro)
6+
* Fix a bug where metadata on project code caused plugin incompatibilities. (Marco Biscaro)
7+
38
## 2.11.1 / 2024-01-28
49

510
* Fix a bug when deploying using passwords read from the console. (Phil Hagelberg)

sample.project.clj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,9 @@
296296
;; valid global variables to set (and their meaningful values).
297297
:global-vars {*warn-on-reflection* true
298298
*assert* false}
299+
;; Preserve metadata when evaluating project code. This can remove reflection
300+
;; warnings but can also cause incompatibilities with certain plugins.
301+
:preserve-eval-meta true
299302
;; Use a different `java` executable for project JVMs. Leiningen's own JVM is
300303
;; set with the LEIN_JAVA_CMD environment variable.
301304
:java-cmd "/home/phil/bin/java1.7"

0 commit comments

Comments
 (0)