This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-06-19
Channels
- # beginners (50)
- # boot (82)
- # cider (42)
- # clojure (206)
- # clojure-india (1)
- # clojure-nl (2)
- # clojure-poland (2)
- # clojure-russia (1)
- # clojure-uk (6)
- # clojurescript (223)
- # code-reviews (17)
- # core-typed (3)
- # datomic (7)
- # dunaj (3)
- # editors (2)
- # instaparse (3)
- # jobs (1)
- # ldnclj (37)
- # overtone (3)
- # reactive (1)
- # reading-clojure (1)
- # reagent (24)
- # remote-jobs (1)
for projects not in clojars, but publicly posted on github…how do I specify to use them in my project.clj
thanks @niwinz, played with it a bit last night before giving up. Probably easier to fork the project and submit to clojars than try to figure out lein-git-deps any longer
@mj_langford: if you need it only locally you can run "lein install" from the project, this will install it into your local maven rep
@mj_langford: Have you tried lein install
? I found it pretty easy and painless (at least for development purposes)
What he said
I have a less than complete understanding of the meaning of all the keys in the project.clj dicts. Do you know of anything using that which explains where to put references?
will just referring to it by name in dependencies be enough after that?
@mj_langford: I dont understand your last question, however, did you see the big sample project.clj: https://github.com/technomancy/leiningen/blob/master/sample.project.clj
I see that, I’ve added it to :repositories [["tabulum" {:url "https://github.com/zclj/tabulam"}]]
But then it’s not finding it
I don’t see how to link the name up so I can :as it in in the namespace
@mj_langford: Can you post your project.clj so we can take a look?
It’s basically the lein chestnut template default prj
tabulam is the library I’m fighting
First off, you spelled tabulam wrong. See if that fixes it.
If not, we can get it working with lein install
pretty easily
fixed, still doesn’t work
I’ve already done lein install
just didn’t find doc on how to make that available either
and instead found doc about specifying repos in :repositories
Ok, then take it out of the :repositories key and add it to the dependencies as [tabulam "0.1.0-SNAPSHOT"]
Then you should be able to require it in your other files as [tabulam.core :as tabulam]
or however
when I run lein repl, I get errors about not finding tabulam in clojars
I did lein install by cloning tabulam
and running lein install
What message did you get when you ran lein install
?
nothing I believe
I can certainly try it again 😄
Created /Users/mlangford/Projects/tabulam/target/tabulam-0.1.0-SNAPSHOT.jar Wrote /Users/mlangford/Projects/tabulam/pom.xml Installed jar and pom into local repo.
Is there another step beyond “lein install” to install it into the maven repo?
I feel like I’ve missed reading the doc on this…but I can’t find it
No, that should work - same type of message I get.
“local” repo == this machine?
or “this repository"
I think it means the machine
Still not working after the last lein install
?
Just checked the .m2 directory, tabulam is definitely there
Same error as before? Can you repost the project.clj?
trying to check
restarting repls: not the fastest thing in the world
The first time I had to deal with anything beyond the super basic in lein I ran into a bunch of issues too.
woo hoo, worked out
total summary: lein install, spell name correctly, get version number correctly everywhere, specify name in :dependencies, then call it MOULE.core in the actual :as import
Awesome!
I’ll eventually revisit this to figure out how to skip the local maven install, but that was a lot of help folks !
has anyone put together something like clojure koans where the student needs to figure out what part of clojure would be most suitable given a description or a snippet of code? ... like "in this situation a defrecord would be better than deftype" ... and "in that situation you should use a vector instead of a list" ... and maybe the student proceeds with a choice and further down the road discovers and understands the pain if their choice was suboptimal .... ?