Skip to content

Commit

Permalink
Updated lein-conjure to work with leiningen 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
macourtney committed Aug 3, 2012
1 parent 34a1cdf commit e3252b0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
1 change: 1 addition & 0 deletions lein_conjure/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ lib
classes
/.lein-failures
/.lein-deps-sum
log
11 changes: 8 additions & 3 deletions lein_conjure/project.clj
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
(defproject lein-conjure "0.8.9-SNAPSHOT"
(defproject org.conjure/lein-conjure "0.9.0-SNAPSHOT"
:description "A leiningen plugin for Conjure. Conjure is a full stack web framework written entirely in Clojure."
:dependencies [[conjure-core "0.8.9-SNAPSHOT"]
[conjure-script "0.8.9-SNAPSHOT"]]
:dependencies [[org.conjure/conjure-script-core "0.9.0-SNAPSHOT"]
[org.conjure/conjure-script-plugin "0.9.0-SNAPSHOT"]
[org.conjure/conjure-script-scaffold "0.9.0-SNAPSHOT"]
[org.conjure/conjure-util "0.9.0-SNAPSHOT"]]

:profiles { :dev { :dependencies [[org.drift-db/drift-db-h2 "1.1.2"]] } }

:eval-in-leiningen true)
10 changes: 5 additions & 5 deletions lein_conjure/src/leiningen/conjure.clj
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
(ns leiningen.conjure
(require [conjure.core.execute :as conjure-execute]
[leiningen.compile :as lein-compile]))
(require [conjure.execute :as conjure-execute]
[leiningen.core.eval :as lein-eval]))

(defn
^ {:doc "A Leiningen plugin to do common conjure tasks."}
conjure [project & args]
(lein-compile/eval-in-project project
`(apply conjure.core.execute/-main '~args)
nil nil '(require 'conjure.core.execute)))
(lein-eval/eval-in-project project
`(apply conjure.execute/-main '~args)
'(require 'conjure.execute)))

0 comments on commit e3252b0

Please sign in to comment.