Fork me on GitHub
#leiningen
<
2019-08-16
>
mafcocinco01:08:58

@mikerod Perhaps I didn't phrase my question clearly. Basically if I have a custom template called foo that is in Clojars, I can run lein new foo my-foo-project and lein will go to Clojars and find the template and download it if it is not already installed on the local machine. How can I get Leiningen to do that for a template that is in a private JAR repository like or something like that. Putting the repository listing in the template doesn't help because the lein new ... command does not have that context. the lein command itself needs to be told somehow (the repositories in the ~/.lein/profiles.clj was the only way I could think of) to look in the private JAR repository to find the template.

mafcocinco01:08:21

Or the template needs to be pre-installed before running the command. Maybe that is the only way but I would prefer for my dev team not to have to do that.

mikerod02:08:51

@mafcocinco thanks. I understand now. The only way I can see it working so far is to add the private repo to :plugin-repositories of the :user profile in ~/.lein/profiles.clj

mikerod02:08:19

I don’t know if :repositories works.

mikerod02:08:27

But yeah, I can see why it’s confusing.

mafcocinco13:08:01

Got it. I will give that a try.

mikerod13:08:45

no problem

Daniel Baez20:08:10

Hello! could I get a recommendation on how to do a multi-module setup with leiningen?

mikerod21:08:45

@daplay there are some plugins around to consider I think. lein-modules is one. And also lein-parent