Fork me on GitHub
#babashka
<
2022-04-12
>
Benjamin16:04:43

when running inside docker can I ensure somehow that all deps are already there? Should I use uberscript? I'm not sure about the usage because I like to use bb.edn tasks. I guess it's stretching the scope of tasks

✔️ 1
Benjamin16:04:05

afaik there is ".m2", ".gitlibs" and ".deps.clj". I'm guessing ".m2" I can pull and community with deps.edn "mvn/local-repo". For .gitlib and deps.clj I don't know

Benjamin17:04:56

Basically I'd like to produce all .m2 and .gitlibs deps I need and then then not use :deps so it doesn't pull

borkdude17:04:48

@U02CV2P4J6S You can make an uberjar and then set the classpath using --classpath

borkdude17:04:12

bb uberjar deps.jar

catjam 1
borkdude17:04:21

bb --classpath deps.jar

catjam 1
Benjamin17:04:45

:thumbsup: I try

Benjamin17:04:16

guess it also packs gitlibs stuff?>

Benjamin17:04:29

Checking out:  at 644a7fc216e43d5da87b07471b0f87d874107d1a
{:warning "could not find classpath entry", :path "/home/benj/.gitlibs/libs/org.babashka/spec.alpha/644a7fc216e43d5da87b07471b0f87d874107d1a/src/main/java"}
{:warning "could not find classpath entry", :path "/home/benj/.gitlibs/libs/org.babashka/spec.alpha/644a7fc216e43d5da87b07471b0f87d874107d1a/src/main/resources"}
it seems to work despite the warns