poly
Search…
⌃K

JVM options

If we want to add extra memory to the poly command or maybe specify where the configuration file for the logging is stored, then we can set the JVM_OPTS environment variable to do that, because JVM_OPTS is also passed in when executing the poly command.
If we use the tools.deps CLI to execute the poly command, e.g. clojure -M:poly test, we can configure the logging in the :poly alias in ./deps.edn for the project, e.g.:
{:aliases {...
:poly {...
:extra-deps {...
org.apache.logging.log4j/log4j-api {:mvn/version "2.13.3"}
org.apache.logging.log4j/log4j-slf4j-impl {:mvn/version "2.13.3"}}}}