Questions tagged [leiningen]

Leiningen is a build automation and dependency management tool for Clojure projects

Leiningen is a project automation tool for Clojure, where you describe your project with Clojure. Leiningen is extensible through plugins and provides functionality to build complex projects and manage dependencies.

1285 questions
16
votes
6 answers

Clojure - how to connect to running REPL process remotely

How can I connect to a REPL session running on a remote server that I can access, for example via SSH?
alex314159
  • 3,159
  • 2
  • 20
  • 28
16
votes
2 answers

How to use a local repository for a Clojure library during initial development?

I have a question about developing a Clojure library which is not answered in the suggested workflow for Library Development and Distribution as described here: http://clojure-doc.org/articles/ecosystem/libraries_authoring.html I am developing a…
nilo de roock
  • 4,077
  • 4
  • 34
  • 62
16
votes
1 answer

How to fix leiningen :aot warning

I am getting Warning: specified :main without including it in :aot. If you only need AOT for your uberjar, consider adding :aot :all into your :uberjar profile instead. Here is my project.clj (defproject korma-test "0.1.0-SNAPSHOT" :description…
octopusgrabbus
  • 10,555
  • 15
  • 68
  • 131
16
votes
1 answer

Can't access environment variables in leiningen project.clj with environ

I am trying to use environ to access environment variables specified in my project.clj :dev profile. This looks like a nice way to set up different configuration options, but I can't seem to get it to work. My project.clj entry looks like…
ChrisM
  • 2,128
  • 1
  • 23
  • 41
16
votes
3 answers

How do I use checked-in jars with leiningen

We have some 3rd-party jars checked-in to our project. We'd like to add them to the classpath. That's it. We don't want to set up a local maven repo (because that would break our 'check out and run' philosophy). Each developer would have to set up…
Darren
  • 2,888
  • 1
  • 23
  • 34
16
votes
7 answers

Installing Leiningen for use with Clojure

I'm trying to install Leiningen on my local machine to get Clojure running, but I can't seem to get the latest version. I'm following the instructions on github here: https://github.com/technomancy/leiningen I'm able to put the script in my path,…
vramon
  • 596
  • 1
  • 4
  • 11
16
votes
1 answer

How to get runtime access to version number of a running Clojure application?

I have a web service written in Clojure which is continuously delivered. To allow our automated deployment tools to know which version of the codebase has been deployed, the web service should provide a way to query which version it is. The version…
15
votes
4 answers

Working with Java from Emacs within Leiningen project

There's plenty of closely related questions on SO, just to name some of them: Java and Clojure with Leiningen What is the best way to do Java development in Emacs? Best java tools for emacs The difference of my questions is that I want to know…
ffriend
  • 27,562
  • 13
  • 91
  • 132
15
votes
2 answers

Serving static files with ring/compojure - from a war

Using ring (and the lein-ring tools) - I am able to serve up static files from "resources" etc as per the docs when running in development - however - when I package things up via lien uberwar I have no idea how to make it serve those files when…
Michael Neale
  • 19,248
  • 19
  • 77
  • 109
15
votes
1 answer

How to run the jar made from 'lein jar' command?

This is a follow-up for this question. After running 'lein jar', I get 'myproject-1.0.0-SNAPSHOT.jar', which doesn't contain the clojure-1.2.0-beta1.jar and clojure-contrib-1.2.0-beta1.jar. And running 'lein uberjar' gives me two jar files. The…
prosseek
  • 182,215
  • 215
  • 566
  • 871
15
votes
5 answers

How do I recompile and reload Java source code while `lein repl` is running?

I have a Clojure project, and I'm using leiningen. I'm also using tools.namespace to reload Clojure code while running a REPL. If I want to include Java source in the project, can I recompile and reload it while the REPL is running? What is the most…
oskarkv
  • 2,329
  • 2
  • 21
  • 29
15
votes
2 answers

how to load ns by default when starting repl

I am using lein2. I would like to load some ns by default when the repl starts. Is it possible to either specify in project.clj the ns that should be loaded, when lein2 repl is executed for that project?
murtaza52
  • 46,887
  • 28
  • 84
  • 120
15
votes
1 answer

How do I reference functions in other files with leiningen?

I'm still fairly new to Clojure so I apologize if this is a completely newbie question but I wasn't able to find a sufficient answer online. Basically, my problem is that any time I try to run my project, I get an error like: Exception in thread…
Carl Veazey
  • 18,392
  • 8
  • 66
  • 81
14
votes
4 answers

Where to find valid version numbers for dependencies in Leiningen

I'm new to Clojure and Leiningen, and I've determined that some of what I'll want to use is located in clojure.contrib.generic.math-functions. I found API information for that at…
Steve Jorgensen
  • 11,725
  • 1
  • 33
  • 43
14
votes
1 answer

What is an elegant way to set up a leiningen project that requires different dependencies based on the build platform?

In order to do some multi-platform GUI development, I have just switched from GTK + Clojure (because it looks like the Java bindings for GTK never got ported to Windows) to SWT + Clojure. So far, so good in that I have gotten an uberjar built for…
Savanni D'Gerinel
  • 2,379
  • 17
  • 27