Fork me on GitHub
#leiningen
<
2015-12-17
>
andrei19:12:09

is there a way to create a lein plugin that just adds entries to the project.clj ?

andrei19:12:40

let’s say if you have some custom config that you want to be shared by all clojure projects that use leiningen simple_smile

andrei19:12:34

and you want to keep these configs in one place (lib or plugin) and then just add it as a dependency to other projects.

darwin19:12:50

@andrei: I think leiningen profiles[1] is the right tool for this job, you can define shared ones in .lein/profiles.clj and then “merge” them via lein with-profile +somesharedprofile …

darwin19:12:28

a tip: usually I tend to define aliases to hide with-profile modifiers: https://github.com/binaryage/dirac/blob/master/project.clj#L109-L112

andrei22:12:12

@darwin: thank you, I will look into it.

andrei22:12:15

is there a good way to share lein profiles? for us the easiest will be just to add something as a dependency to the project