Fork me on GitHub
#tools-deps
<
2018-11-27
>
adamfrey15:11:45

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"]

adamfrey15:11:14

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

adamfrey15:11:50

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

dominicm16:11:32

I guess it doesn't make much sense for that to exist does it?

adamfrey16:11:25

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.

dominicm16:11:16

because it works from an alias

dominicm16:11:18

I'm thinking about the expectations I have, which is that :aliases is ignored from deps.edn transitively, and everything else is transitive.

aisamu20:11:58

I'd say it follows the same logic as a root-level :main-opts

dominicm21:11:46

That doesn't exist either!

aisamu22:11:06

Precisely simple_smile

eval202016:11:15

Can one require deps in the init-script?

eval202016:11:39

This succeeds: clj -e '(require (quote [clj-time.core :as t])) (prn (t/now))' but I cannot make it work from init-script.

eval202016:11:10

I was doing weird stuff: yes this works as expected

dominicm18:11:44

thought this was a need trick:

#!/bin/sh

deps="{}"

if [ "$#" -gt 0 ]; then
 deps="$(clojure -A:user/find-deps "[email protected]")"
fi

clojure -A:user/rebel -Sdeps "$deps"
I named it replme.

👌 2
winkywooster22:11:36

@dominicm that’s cool, thanks for sharing