Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added root config to remove duplication

  • Loading branch information...
commit 334fb4d76d346d6a2ef0f96ff69a922d850eb55f 1 parent b780e8d
Micah Martin authored
35 Rakefile
View
@@ -16,6 +16,24 @@ ensure
Dir.chdir pwd
end
+namespace :chee do
+ desc "full chee build"
+ task :build do
+ in_dir "chee" do
+ run_command "lein deps, install"
+ run_command "lein spec"
+ end
+ end
+
+ desc "push"
+ task :push do
+ in_dir "chee" do
+ run_command "lein jar, push"
+ end
+ end
+
+end
+
namespace :joodo do
desc "full joodo build"
task :build do
@@ -24,6 +42,13 @@ namespace :joodo do
run_command "lein spec"
end
end
+
+ desc "push"
+ task :push do
+ in_dir "joodo" do
+ run_command "lein jar, push"
+ end
+ end
end
namespace :lein_joodo do
@@ -47,9 +72,17 @@ namespace :lein_joodo do
run_command "lein spec"
end
end
+
+ desc "push"
+ task :push do
+ in_dir "lein-joodo" do
+ run_command "lein jar, push"
+ end
+ end
end
desc "full build"
-task :build => %w{joodo:build lein_joodo:build}
+task :build => %w{chee:build joodo:build lein_joodo:build}
+task :push => %w{chee:push joodo:push lein_joodo:push}
task :default => :build
8 chee/project.clj
View
@@ -1,5 +1,7 @@
-(defproject chee "0.7.2"
+(def config (load-file "../config.clj"))
+
+(defproject chee (:version config)
:description "Support utilities"
- :dependencies [[org.clojure/clojure "1.4.0"]]
- :dev-dependencies [[speclj "2.1.1"]]
+ :dependencies [[org.clojure/clojure ~(:clojure-version config)]]
+ :dev-dependencies [[speclj ~(:speclj-version config)]]
:test-path "spec/")
5 config.clj
View
@@ -0,0 +1,5 @@
+{
+ :version "0.8.0"
+ :clojure-version "1.2.1"
+ :speclj-version "2.1.2"
+}
10 joodo/project.clj
View
@@ -1,17 +1,19 @@
-(defproject joodo "0.7.2"
+(def config (load-file "../config.clj"))
+
+(defproject joodo (:version config)
:description "Joodo, a Clojure framework for web apps."
:license {:name "The MIT License"
:url "file://LICENSE"
:distribution :repo
:comments "Copyright © 2011-2012 Micah Martin All Rights Reserved."}
- :dependencies [[org.clojure/clojure "1.2.1"]
+ :dependencies [[org.clojure/clojure ~(:clojure-version config)]
[ring/ring-core "1.0.2"]
[ring/ring-jetty-adapter "1.0.2"]
[compojure "1.0.1"]
[hiccup "0.3.8"]
[mmargs "1.2.0"]
[filecabinet "1.0.4"]
- [chee "0.7.2"]]
- :dev-dependencies [[speclj "2.1.1"]]
+ [chee ~(:version config)]]
+ :dev-dependencies [[speclj ~(:speclj-version config)]]
:test-path "spec/"
:java-source-path "src/")
8 lein-joodo/project.clj
View
@@ -1,13 +1,15 @@
-(defproject joodo/lein-joodo "0.7.1"
+(def config (load-file "../config.clj"))
+
+(defproject joodo/lein-joodo (:version config)
:description "Leiningen Plugin for Joodo, a Clojure framework for web apps."
:license {:name "The MIT License"
:url "file://LICENSE"
:distribution :repo
:comments "Copyright © 2011-2012 Micah Martin All Rights Reserved."}
- :dependencies [[org.clojure/clojure "1.2.1"]
+ :dependencies [[org.clojure/clojure ~(:clojure-version config)]
[filecabinet "1.0.4"]
[mmargs "1.2.0"]]
- :dev-dependencies [[speclj "2.1.1"]
+ :dev-dependencies [[speclj ~(:speclj-version config)]
[filecabinet "1.0.4"]]
:test-path "spec/"
:shell-wrapper {:main joodo.kuzushi.main
Please sign in to comment.
Something went wrong with that request. Please try again.