Permalink
Browse files

Added preliminary Leiningen support.

  • Loading branch information...
1 parent dcaf613 commit d32260a87f8c92f18bed3b00bd7dc8e66085ab51 @gcv committed Mar 21, 2010
Showing with 27 additions and 22 deletions.
  1. +9 −6 README.md
  2. +10 −15 build.xml
  3. +7 −0 project.clj
  4. +1 −1 version.properties
View
@@ -54,14 +54,15 @@ This example is available in `src/examples/cupboard/simple.clj`.
## Dependencies
-Cupboard's `build.xml` contains an Ant task which downloads its dependencies,
-including Clojure and clojure-contrib.
-
-* Clojure (version 1.0.0 tested)
-* clojure-contrib (1.0-compatible branch, Git revision e0080e64 tested)
-* Berkeley DB JE (version 3.3.87 tested)
+* Clojure (version 1.1.0 tested)
+* clojure-contrib (version 1.1.0-compatible)
+* Berkeley DB JE (version 4.0.92 tested)
* Joda Time (version 1.6 tested)
+Use Leiningen to download Cupboard's dependencies. Alternatively, Cupboard's
+`build.xml` contains an Ant task which downloads its dependencies, including
+Clojure and clojure-contrib.
+
## Getting Started
@@ -73,6 +74,8 @@ including Clojure and clojure-contrib.
3. Copy the Cupboard jar and its dependencies to wherever you normally copy your
Clojure dependencies. Make sure to add them to your project's classpath.
+Note: Full Leiningen support is forthcoming once Cupboard is more stable.
+
## Documentation
View
@@ -3,15 +3,10 @@
<property file="version.properties"/>
- <property name="repository.cupboard" value="http://cloud.github.com/downloads/gcv/cupboard"/>
- <property name="repository.oracle" value="http://download.oracle.com"/>
+ <property name="repository.clojure" value="http://build.clojure.org"/>
+ <property name="repository.oracle" value="http://download.oracle.com/maven"/>
<property name="repository.maven" value="http://mirrors.ibiblio.org/pub/mirrors/maven2"/>
- <property name="dep.clojure" value="clojure-1.0.0.jar"/>
- <property name="dep.clojure-contrib" value="clojure-contrib-e0080e64.jar"/>
- <property name="dep.je" value="je-3.3.87.jar"/>
- <property name="dep.joda-time" value="joda-time-1.6.jar"/>
-
<target name="init">
<mkdir dir="lib"/>
@@ -33,14 +28,14 @@
<target name="deps" depends="init">
- <get src="${repository.cupboard}/${dep.clojure}"
- dest="lib/${dep.clojure}" usetimestamp="true"/>
- <get src="${repository.cupboard}/${dep.clojure-contrib}"
- dest="lib/${dep.clojure-contrib}" usetimestamp="true"/>
- <get src="${repository.oracle}/maven/com/sleepycat/je/3.3.87/${dep.je}"
- dest="lib/${dep.je}" usetimestamp="true"/>
- <get src="${repository.maven}/joda-time/joda-time/1.6/${dep.joda-time}"
- dest="lib/${dep.joda-time}" usetimestamp="true"/>
+ <get src="${repository.clojure}/releases/org/clojure/clojure/1.1.0/clojure-1.1.0.jar"
+ dest="lib/clojure-1.1.0.jar" usetimestamp="true"/>
+ <get src="${repository.clojure}/releases/org/clojure/clojure-contrib/1.1.0/clojure-contrib-1.1.0.jar"
+ dest="lib/clojure-contrib-1.1.0.jar" usetimestamp="true"/>
+ <get src="${repository.maven}/joda-time/joda-time/1.6/joda-time-1.6.jar"
+ dest="lib/joda-time-1.6.jar" usetimestamp="true"/>
+ <get src="${repository.oracle}/com/sleepycat/je/4.0.92/je-4.0.92.jar"
+ dest="lib/je-4.0.92.jar" usetimestamp="true"/>
</target>
View
@@ -0,0 +1,7 @@
+(defproject cupboard "1.0.0-SNAPSHOT"
+ :description "An embedded database library for Clojure."
+ :repositories {"oracle" "http://download.oracle.com/maven"}
+ :dependencies [[org.clojure/clojure "1.1.0"]
+ [org.clojure/clojure-contrib "1.1.0"]
+ [com.sleepycat/je "4.0.92"]
+ [joda-time "1.6"]])
View
@@ -1 +1 @@
-version=1.0alpha1
+version=1.0alpha2

0 comments on commit d32260a

Please sign in to comment.