This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-27
Channels
- # adventofcode (1)
- # announcements (4)
- # beginners (120)
- # calva (5)
- # cider (12)
- # clara (3)
- # cljdoc (48)
- # cljs-dev (33)
- # cljsrn (4)
- # clojure (124)
- # clojure-dev (43)
- # clojure-europe (2)
- # clojure-italy (168)
- # clojure-nl (2)
- # clojure-spec (7)
- # clojure-uk (79)
- # clojurescript (50)
- # core-logic (6)
- # cursive (12)
- # datascript (1)
- # datomic (8)
- # devcards (2)
- # emacs (5)
- # events (2)
- # figwheel-main (6)
- # fulcro (18)
- # graphql (42)
- # hyperfiddle (3)
- # jobs (1)
- # luminus (2)
- # nrepl (5)
- # off-topic (59)
- # onyx (5)
- # parinfer (2)
- # pathom (10)
- # pedestal (2)
- # portkey (3)
- # re-frame (24)
- # reagent (6)
- # reitit (54)
- # remote-jobs (1)
- # ring (5)
- # shadow-cljs (75)
- # spacemacs (35)
- # sql (22)
- # tools-deps (16)
- # unrepl (10)
can :jvm-opts
be put at the top level of a project's deps.edn file?
like:
:jvm-opts ["-Xms512M"
"-Xmx1g"
"-Djava.io.tmpdir=./tmp"
"-Dcatalina.base=./tmp"]
It doesn't seem to be working but I can't find an example in the docs so maybe that's not a supported feature
ah nevermind, it doesn't exist yet. I found a discussion about the same thing from a few days ago: https://clojurians-log.clojureverse.org/tools-deps/2018-11-12
why doesn't it make sense? I would like to start a a clojure process from my project and have a bunch of jvm opts applied without having to specify them in the cli each time.
There's a JIRA ticket for it already: https://dev.clojure.org/jira/browse/TDEPS-63
I'm thinking about the expectations I have, which is that :aliases
is ignored from deps.edn transitively, and everything else is transitive.
why doesn't it make sense? I would like to start a a clojure process from my project and have a bunch of jvm opts applied without having to specify them in the cli each time.
There's a JIRA ticket for it already: https://dev.clojure.org/jira/browse/TDEPS-63
This succeeds: clj -e '(require (quote [clj-time.core :as t])) (prn (t/now))'
but I cannot make it work from init-script.
thought this was a need trick:
#!/bin/sh
deps="{}"
if [ "$#" -gt 0 ]; then
deps="$(clojure -A:user/find-deps "$@")"
fi
clojure -A:user/rebel -Sdeps "$deps"
I named it replme
.@dominicm that’s cool, thanks for sharing