leiningen

Automating Leiningen local dependency management

*爱你&永不变心* 提交于 2020-01-03 13:39:16
问题 I am using a local maven repository to house some code I am using to develop a project. I have cited this repository in my project.clj file, and am now able to rely on local jars in this way (how to do this in a previous question of mine). Since I am actively developing these projects, I have my project.clj file looking for the LATEST version. But, in order to update a dependency, I still have to increment the version number of that dependency and then run lein install to build it to the

How to open existing Clojure project in Eclipse?

ぐ巨炮叔叔 提交于 2020-01-02 07:09:54
问题 Ive tried to do it usual way File -> Import -> General -> Existing project (as for java projects) BUT eclipse dont see clojure projects and cannot open it :( do you have any idea why ? 回答1: Install Counterclockwise plugin in Eclipse (from eclipse marketplace). This brings clojure and leiningen support to eclipse. Add lein2-eclipse plugin to your project.clj : :plugins [[lein2-eclipse "2.0.0"]] Run following command inside the project directory : lein eclipse This generates necessary project

Equivalent of 'lein swank' to other Lisp/Scheme implementations with emacs/slime

别等时光非礼了梦想. 提交于 2020-01-02 05:42:06
问题 I've been using emacs/slime for coding lisp, but with Clojure I found 'lein swank'. I must say that it's pretty useful, as I can connect to a server that runs clojure. How about the other Lisp implementations? What Lisp implementations provide the equivalent of 'lein swank' in Clojure? I mean, is there any other Lisp implementations that provide server connectivity so that I use 'M-x slime-connect', not just 'M-x slime'? 回答1: Non-clojure swank backends don't need a lein swank equivalent since

Sandwiching Clojure between Java with Leiningen

二次信任 提交于 2020-01-02 04:12:08
问题 For a class, I need to write some JVM code, and I'm hoping to use Clojure. I got it to work with the bottom part of the software stack, but I can't manage to make it work in between the GUI layer sitting on top and the bottom part. My main problem is getting the Java GUI to recognize my Clojure files. I want to use Leiningen for this, but the Java compiling solution doesn't seem to account for this interoperation. The answer here seems to be exactly what I need. I don't understand where to

Bundle native JNI shared libraries with Clojure libraries

天涯浪子 提交于 2020-01-01 12:06:11
问题 I am writing a library for clojure which involves native code. How can I bundle the shared library (aka native dependencies) when I deploy the clojure libraries to public repositories (like clojars)? Further Info: My project structure looks roughly like: src/ native/ - C code , C Object files and compiled shared libs java/ - Java stuff clojure/ - Clojure stuff I am currently using leineingen. I have tried doing: :jvm-opts [~(str "-Djava.library.path=src/native/:" (System/getenv "$LD_LIBRARY

Manage dependencies in `project.clj` from the command line

假如想象 提交于 2020-01-01 05:59:05
问题 I would like to search and install clojure dependencies from the commandline. Does there exists a tool/leiningen command/ lein change script?/... that can: search for clojure libraries online rewrite project.clj to include the dependency (latest version) update dependencies? Much along the lines of npm install --save ( --save-dev ) and npm search , for those that are familiar with npm (JS/Node package manager). (Maybe boot provides a more npm-like workflow?) 回答1: You could find complete list

How to change Clojure or Lein's Clojure default version?

╄→гoц情女王★ 提交于 2019-12-29 09:01:26
问题 I'm not sure why but when I enter the REPL through $ clojure or $ lein repl , >(clojure-version) says '1.2.1'. I want it to say '1.5'. Version 1.5 works fine in my projects managed by lein. I just want to tell lein to always use 1.5 by default, instead of 1.2. 回答1: Currently this isn't supported outside a project, but it's being worked on: https://github.com/technomancy/leiningen/issues/966 A workaround for now is just to specify it in your project.clj Further recommendation: upgrade to

howto package my project resource-paths to use as project dependency?

不羁的心 提交于 2019-12-25 13:45:55
问题 I'm trying for a while with no success to package as jar file my resource-paths files (.dylib and .so files). I've packaged the resources folder following this page: How to create jar file with package structure? and I've installed the jar in my local maven repo following this page http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html I've seen this page how to package resources in a leiningen project also but in this case it seems that the package is not used as clojure

How to debug a console app from the REPL?

大兔子大兔子 提交于 2019-12-25 09:16:32
问题 It's really confortable to use emacs+cider for the daily development. All the stuff I've configured in my text editor makes it ideal for the task. The current project that I'm working on my spare time is a text editor . I've already implmented one in C++ and I used gdb to debug , from emacs. To run it, I entered set new-console on and run in the gdb buffer. This would pop a new console that would handle all the I/O . Now I'm trying to reimplement it in Clojure. By far, one of my biggest

trying to get leiningen user profile to run clojure-1.5.0

荒凉一梦 提交于 2019-12-23 19:27:43
问题 I have both clojure-1.4.0 and clojure-1.5.0 installed and working correctly. In my various project.clj files, I can set one or the other as a dependency, and leiningen picks up the stated version correctly. When I am not in a project directory, then lein repl always runs clojure-1.4.0. I tried to change the default by putting the following profiles.clj in my ~/.lein directory: {:user {:dependencies ^:replace [[org.clojure/clojure "1.5.0"]] :plugins [[lein-pprint "1.1.1"]]}} but lein repl ,