Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Used leinjacker.deps/add-if-missing

  • Loading branch information...
commit 3f4e7e5e7d91ab3887fa7508504ab2f1aaa46e31 1 parent bedb3da
@weavejester authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/leiningen/ring/server.clj
View
3  src/leiningen/ring/server.clj
@@ -1,4 +1,5 @@
(ns leiningen.ring.server
+ (:require [leinjacker.deps :as deps])
(:use [leinjacker.eval :only (eval-in-project)]
leiningen.ring.util))
@@ -18,7 +19,7 @@
(ensure-handler-set! project)
(let [project (update-in project [:ring] merge options)]
(eval-in-project
- (update-in project [:dependencies] conj ['ring-server "0.2.4"])
+ (deps/add-if-missing project '[ring-server "0.2.4"])
`(ring.server.leiningen/serve
'~(select-keys project [:ring]))
(load-namespaces
Please sign in to comment.
Something went wrong with that request. Please try again.